#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  vector<long long> ans = {1,   2,   3,   4,   5,   6,   7,   8,   9,
                           19,  29,  39,  49,  59,  69,  79,  89,  99,
                           199, 299, 399, 499, 599, 699, 799, 899, 999};
  for (int digit = 0; digit < 12; ++digit) {
    long long base = 0;
    for (int i = 0; i <= digit; ++i) {
      base += 9 * (long long)pow(10, i);
    }
    for (int k = 100; k <= 999; ++k) {
      long long upper = k * (long long)pow(10, digit + 1);
      int a = k / 100;
      int b = (k - a * 100) / 10;
      int c = (k - a * 100 - b * 10);
      long long num = upper + base;
      if (a >= digit + 2) {
        if (b == 9 && c == 9) {
          ans.push_back(num);
        }
      } else {
        if ((11 * a + b >= digit + 1) && (c == 9)) {
          ans.push_back(num);
        } else if (11 * a + b < digit) {
          ans.push_back(num);
        }
      }
    }
  }
  for (int k = 0; k < K; ++k) {
    cout << ans[k] << endl;
  }
  return 0;
}
