#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<long long> vec{
      1,    2,    3,    4,    5,    6,    7,    8,    9,    19,   28,   29,
      37,   38,   39,   49,   57,   58,   59,   68,   69,   79,   87,   88,
      89,   98,   99,   109,  119,  129,  139,  149,  159,  169,  179,  189,
      199,  299,  379,  389,  398,  399,  499,  589,  599,  689,  699,  799,
      899,  999,  1099, 1199, 1299, 1399, 1499, 1599, 1699, 1799, 1899, 1999,
      2599, 2699, 2799, 2899, 2999, 3999, 4999, 5999, 6999, 7999, 8999, 9999};
  for (int i = 10; i < 1000000; i++) {
    string s = "999";
    string I = to_string(i);
    string sum = I + s;
    long long t = stoi(sum);
    vec.push_back(t);
  }
  for (int i = 0; i < N; i++) {
    cout << vec[i] << endl;
  }
}
