#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
using std::string;
;
int main(void) {
  long long num = 0;
  unsigned long long K;
  cin >> K;
  for (long long i = 1; num < K; ++i) {
    long long n = i;
    long long Sn = 0;
    if (n % 10 == 9) {
      cout << i << endl;
      num++;
    } else {
      while (n > 0) {
        Sn += n % 10;
        n /= 10;
      }
      if (Sn - i >= 0) {
        cout << i << endl;
        num++;
      }
    }
  }
  return 0;
}
