#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  vector<long long> sunuke(k);
  vector<double> atai(1000001);
  for (long long i = 1; i <= 1000000; i++) {
    int sum = 0;
    int num = i;
    while (num != 0) {
      sum += num % 10;
      num /= 10;
    }
    atai[i] = i / sum;
  }
  int hoge = 0;
  for (long long i = 1;; i++) {
    bool flag = true;
    for (long long j = i + 1; j <= 1000000; j++) {
      if (atai[j] >= atai[i]) {
        flag = false;
        break;
      }
    }
    if (flag) {
      sunuke[hoge] = i;
      hoge++;
    } else {
      if (atai[i] <= 1) {
        sunuke[hoge] = i;
        hoge++;
      }
    }
    if (hoge == k) break;
  }
  for (int i = 0; i < k; i++) {
    cout << sunuke[i] << endl;
  }
}
