#include <bits/stdc++.h>
using namespace std;
long long k;
int main() {
  cin >> k;
  long long id = 0;
  long long n = 10;
  for (int i = (0); i < (9); i++) {
    ++id;
    cout << i + 1 << endl;
  }
  long long e = 0;
  long long le = 0;
  while (id <= k) {
    n++;
    le = e;
    long long t = n;
    e = 0;
    while (t > 0) {
      e += t % 10;
      t /= 10;
    }
    if (e < le) {
      id++;
      cout << n - 1 << endl;
    }
  }
  return 0;
}
