#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long a[18] = {1,  2,  3,  4,  5,  6,  7,  8,  9,
                     19, 29, 39, 49, 59, 69, 79, 89, 99};
  long long b[18] = {10, 11, 12, 13, 14, 15, 16, 17, 18,
                     19, 29, 39, 49, 59, 69, 79, 89, 99};
  long long c[13] = {
      99,           999,           9999,          99999,      999999,
      9999999,      99999999,      999999999,     9999999999, 99999999999,
      999999999999, 9999999999999, 99999999999999};
  for (int i = 0; i < n; i++) {
    if (i < 18) {
      cout << a[i] << endl;
    } else if (i < 27) {
      cout << a[i - 18] << 99 << endl;
    } else {
      cout << (i - 27) % 99 + 1 << c[(i - 27) / 99] << endl;
    }
  }
}
