#include <bits/stdc++.h>
using namespace std;
long long S(long long x) {
  long long res = 0;
  while (x != 0) {
    res += x % 10;
    x /= 10;
  }
  return res;
}
int main() {
  long long k;
  cin >> k;
  long long cnt = 0;
  long long x = 1;
  while (cnt < k) {
    if (x * S(x + 1) <= (x + 1) * S(x)) {
      cout << (x) << endl;
      cnt++;
    }
    x++;
  }
  return 0;
}
