#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[12] = {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 < 36) {
      cout << a[i - 18] << 99 << endl;
    } else {
      cout << (i - 36) % 89 + 10 << c[(i - 36) / 89] << endl;
    }
  }
}
