#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int K;
  vector<double> max(100, 100000);
  long long int ans;
  double sum = 0;
  long long int count = 0;
  bool flag = false;
  long long int kari;
  cin >> K;
  for (long long int i = 1; i < 100000000000000; ++i) {
    sum = 0;
    long long int A = i;
    for (int l = 15; l > -1; l--) {
      ans = A / (int)pow(10, l);
      sum += ans;
      A = A - (ans * pow(10, l));
    }
    kari = max[0];
    max.erase(max.begin());
    max.push_back(i / sum);
    flag = true;
    for (int k = 0; k < (100); k++) {
      if (max[k] < kari) {
        flag = false;
      }
    }
    if (flag) {
      cout << i - 100 << endl;
      count++;
    }
    if (count == K) break;
  }
  return 0;
}
