#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K;
  cin >> K;
  for (long long i = 1; i <= min(K, (long long)9); i++) {
    cout << i << endl;
  }
  if (K < 10) return 0;
  long long d = 1;
  long long cnt = 1;
  for (long long i = 10; i <= K; i++) {
    long long res = cnt * pow(10, d);
    long long t = d - 1;
    while (t >= 0) {
      res += 9 * pow(10, t);
      t--;
    }
    cout << res << endl;
    cnt++;
    if (cnt == 10) {
      cnt = 1;
      d++;
    }
  }
  return 0;
}
