#include <bits/stdc++.h>
using namespace std;
double PI = acos(-1);
int const N = 1e6 + 10, M = 5e6 + 10, oo = 1e9;
const int mod = oo + 7;
const long long OO = 3e18;
int cnt(int a) {
  int y = 0;
  while (a) {
    y += a % 10;
    a /= 10;
  }
  return y;
}
double f(int a) { return a * 1.0 / cnt(a); }
vector<long long> v;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int k, cnt = 0;
  cin >> k;
  for (int i = 1; i < 10 && cnt < k; i++) v.push_back(i), cnt++;
  for (long long i = 10; cnt < k; i *= 10)
    for (int j = 1; j < 10 && cnt < k; j++) v.push_back(j * i + i - 1), cnt++;
  for (auto c : v) cout << c << '\n';
  return 0;
}
