#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K;
  cin >> K;
  long long ans = 0;
  int keta = 0;
  long long cnt = 0;
  bool flag = false;
  long long ansa[200010] = {};
  long long i = 0;
  for (;;) {
    for (long long j = 2; j < 11; j++) {
      ans = j * pow(10, keta) - 1;
      if (ans > 1000000000000000) {
        flag = true;
        break;
      }
      ansa[i] = ans;
      i++;
      cnt++;
      if (cnt >= K) {
        flag = true;
        break;
      }
    }
    keta++;
    if (flag) break;
  }
  keta = 1;
  for (;;) {
    for (long long j = 2; j < 11; j++) {
      ans = j * pow(10, keta) - 2;
      ansa[i++] = ans;
      cnt++;
      if (cnt >= K) {
        flag = true;
        break;
      }
    }
    keta++;
    if (flag) break;
  }
  for (long long j = K; j < 200010; j++) ansa[j] = 1000000007;
  sort(ansa, ansa + 200010);
  for (long long j = 0; j < K; j++) cout << ansa[j] << endl;
  return 0;
}
