#include <bits/stdc++.h>
using namespace std;
int main() {
  int N = 100000000, S = 0;
  int K;
  int a = 1000000000, b;
  cin >> K;
  vector<pair<int, int> > Sn;
  for (int i = 1; i < 100000000; i++) {
    N = i;
    b = 0;
    a = 100000000;
    S = 0;
    while (1) {
      b = N / a;
      N -= a * b;
      S += b;
      a /= 10;
      if (a == 0) break;
    }
    Sn.push_back(make_pair(i / S, i));
  }
  sort(Sn.begin(), Sn.end());
  for (int i = 0; i < K; i++) {
    cout << Sn.at(i).second << endl;
  }
}
