#include <bits/stdc++.h>
using namespace std;
int main(void) {
  unsigned long long N = (unsigned long long)1e15;
  unsigned long long cnt = 0;
  unsigned long long n_nine = 1;
  unsigned long long n_top = 1;
  unsigned long long ten = 10;
  unsigned long long K;
  cin >> K;
  for (int i = 1; i < 10; i++) {
    cout << i << endl;
    cnt++;
    if (cnt == K) {
      return 0;
    }
  }
  while (1) {
    unsigned long long sunuke = n_top * ten + n_nine * 9;
    unsigned long long i = n_top * ten + (n_nine - 1) * 9;
    unsigned long long sn = 1;
    for (int j = i; j < sunuke; j += n_nine) {
      if (j / sn < sunuke) {
        cout << j << endl;
      }
      sn += 1;
      cnt++;
    }
    if (sunuke >= N) {
      return 0;
    }
    cout << sunuke << endl;
    cnt++;
    if (cnt == K) {
      return 0;
    }
    n_top++;
    if (n_top == 10) {
      n_nine = n_nine * 10 + 1;
      n_top = 1;
      ten *= 10;
    }
  }
  return 0;
}
