#include <bits/stdc++.h>
using namespace std;
long long K;
long long f[1000005];
int main() {
  scanf("%lld", &K);
  long long cnt = 0;
  long long xxx = 1, yyy = 1, zzz = 1, ttt = 1;
  for (long long i = 1; i <= 15; ++i) {
    xxx = xxx * 10;
    zzz = xxx / 10;
    yyy = yyy * 10 + 1;
    ttt = yyy / 100 * 9;
    for (long long j = xxx / 10 + ttt; j <= 9 * (yyy / 10); j += (xxx / 10)) {
      f[++cnt] = j;
    }
  }
  for (int i = 1; i <= K; ++i) {
    printf("%lld\n", f[i]);
  }
  return 0;
}
