#include <bits/stdc++.h>
using namespace std;
double rep(int K) {
  int ans = K;
  int hoge;
  int sum = 0;
  while (K) {
    hoge = K % 10;
    sum += hoge;
    K = K / 10;
  }
  return (double)ans / sum;
}
int main(void) {
  int K;
  cin >> K;
  int i = 1;
  while (K) {
    if (rep(i) <= rep(i + 1)) {
      cout << i << endl;
      i++;
    } else {
      while (rep(i) > rep(i + 1)) {
        i++;
      }
      cout << i << endl;
      i++;
    }
    K--;
  }
  return 0;
}
