#include <bits/stdc++.h>
using namespace std;
long long m = 1e15;
long long getnodig(long long n) {
  long long p = 0;
  while (n) {
    p++;
    n = n / 10;
  }
  return p;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  vector<long long> v;
  for (long long i = 1; i < 10; i++) v.push_back(i);
  long long n = 9;
  long long cnt = 1;
  while (n < m) {
    long long add = pow(10, cnt);
    for (long long i = 1; i < 10; i++) {
      v.push_back(n + i * add);
    }
    n = v[v.size() - 1];
    cnt++;
  }
  long long k;
  cin >> k;
  for (long long i = 0; i < k; i++) cout << v[i] << "\n";
  return 0;
}
