#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  int k;
  x = 100000000;
  vector<double> a(x);
  cin >> k;
  for (long long i = 0; x > i; i++) {
    a.at(i) = i + 1;
  }
  for (long long i = 0; x > i; i++) {
    int b = 0;
    for (long long j = 1; a.at(i) >= j; j *= 10) {
      long long c = a.at(i);
      if (j = 1)
        b += c % 10;
      else
        b += (c / j) % 10;
    }
  }
  sort(a.begin(), a.end());
  for (long i = 0; k > i; i++) {
    cout << a.at(i) << endl;
  }
}
