#include <bits/stdc++.h>
using namespace std;
double s(long long n) {
  long long num = n;
  long long k = 0;
  while (num) {
    k += num % 10;
    num /= 10;
  }
  return (double)n / (double)k;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int K;
  cin >> K;
  vector<long long> ans = {1,  2,  3,  4,  5,  6,  7,  8,  9,
                           19, 29, 39, 49, 59, 69, 79, 89, 99};
  long long rest = 9, cnt = 1;
  while (true) {
    for (long long i = 10; i < 99; i++) {
      long long n = i, next = i + 1;
      for (int j = 0; j < cnt; j++) {
        n *= 10;
        next *= 10;
      }
      n += rest;
      next += rest;
      if (s(n) > s(next)) continue;
      ans.push_back(n);
    }
    rest = rest * 10 + 9;
    cnt++;
    if (ans.size() >= K) break;
  }
  for (int i = 0; i < K; i++) {
    cout << ans[i] << endl;
  }
  return 0;
}
