#include <bits/stdc++.h>
using namespace std;
template <class T>
T digit_sum(T n) {
  T ds = 0;
  for (T i = n; i > 0; i /= 10) {
    ds += i % 10;
  }
  return ds;
}
int main() {
  int k;
  cin >> k;
  int count = 0;
  int digit = 1;
  for (;; ++digit) {
    for (int i = 1; i < 10; ++i) {
      cout << i;
      for (int i = 1; i < digit; ++i) {
        cout << '9';
      }
      cout << '\n';
      count++;
      if (count == k) goto end;
    }
  }
end:
  return 0;
}
