#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
using std::string;
;
int S(long long n) {
  int num = 0;
  while (n > 0) {
    num += n % 10;
    n /= 10;
  }
  return num;
}
int main(void) {
  long long num = 0;
  long long K;
  cin >> K;
  for (long long i = 1; num < K; ++i) {
    bool flag = true;
    ;
    long long n = i;
    long long Sn = S(n);
    for (long long l = 1; l < 10; ++l) {
      long long m = n + l;
      long long Sm = S(m);
      if (n * Sm > m * Sn) {
        flag = false;
        break;
      }
    }
    if (flag) {
      cout << i << endl;
      ++num;
    }
  }
  return 0;
}
