#include <bits/stdc++.h>
using namespace std;
long long sunuke(long long x) {
  long long A = 0;
  for (auto&& X : to_string(x)) A += (X - '0');
  return A;
}
signed main() {
  long long K;
  cin >> K;
  long long n = 1;
  long long m;
  long long i = 0;
  while (i < K) {
    m = n + 1;
    if (((float)n / sunuke(n)) <= (m / sunuke(m))) {
      cout << n << endl;
      i++;
    }
    n++;
  }
}
