#include <bits/stdc++.h>
bool debug = true;
long long K;
inline long long S(long long x) {
  int ans = 0;
  while (x > 0) {
    ans += x % 10;
    x /= 10;
  }
  return ans;
}
int main() {
  std::cin >> K;
  long long cnt = 0, i = 1;
  long double max = 0.0;
  while (cnt < K) {
    long double x = 1. * i / S(i);
    if (max <= x) {
      max = x;
      std::cout << i << std::endl;
      ++cnt;
    }
    if (i <= 8) {
      ++i;
    } else {
      i += 10;
    }
  }
}
