#include <bits/stdc++.h>
using namespace std;
long long K;
string s("19");
int main(void) {
  cin >> K;
  long long head = 1, tail = 19, j = 1;
  for (long long i = 1; i <= K; ++i) {
    if (i < 10)
      cout << i << endl;
    else if (i < 19) {
      cout << s << endl;
      if (s[0] < '9') ++s[0];
    } else {
      cout << j << s << endl;
      ++j;
      if (j == tail + 1) j = ++head, tail += 10, s.push_back('9');
    }
  }
  return 0;
}
