#include <bits/stdc++.h>
using namespace std;
long long sumdigit(long long x) {
  long long a = 0;
  for (int i = 0; i <= 15; i++) {
    a += x % 10;
    x /= 10;
  }
  return a;
}
int main(int argc, char const* argv[]) {
  long long k;
  cin >> k;
  for (long long i = 1; i < (long long)pow(10, 15); i++) {
    if (i / sumdigit(i) == 1) {
      cout << i << endl;
      k--;
    }
    if (k == 0) {
      break;
    }
  }
  return 0;
}
