#include <bits/stdc++.h>
using namespace std;
long long kplus(long long num) {
  long long dig, sum = 0;
  while (num) {
    dig = num % 10;
    sum += dig;
    num = num / 10;
  }
  return sum;
}
int main(int argc, char const *argv[]) {
  long long K;
  cin >> K;
  if (K < 10) {
    for (int i = (0); i < (K); ++i) {
      cout << i << endl;
    }
  } else {
    for (int i = (1); i < (10); ++i) {
      cout << i << endl;
    }
    long long i = 10;
    long long count = 9;
    while (1) {
      long long res = (i - 9) * 10 + 9;
      if ((long double(res)) / kplus(res) <
          (long double(res + 10)) / kplus(res + 10)) {
        cout << res << endl;
        count++;
      }
      i++;
      if (count == K) break;
    }
  }
}
