#include <bits/stdc++.h>
using namespace std;
long long sumOfDigit(long long x) {
  long long ret = 0;
  while (x) {
    ret += x % 10;
    x /= 10;
  }
  return ret;
}
long long f(long long N) {
  vector<pair<double, long long>> v;
  string S = to_string(N);
  for (int i = 0; i <= S.size(); i++) {
    string T(S);
    for (int j = 0; j < i; j++) {
      T[T.size() - j - 1] = '9';
    }
    long long num = stoll(T);
    v.push_back(make_pair(num / sumOfDigit(num), num));
  }
  return min_element(v.begin(), v.end())->second;
}
int main() {
  long long K;
  cin >> K;
  long long N = 1;
  for (int i = 0; i < K; i++) {
    cout << N << endl;
    N = f(N + 1);
  }
  return 0;
}
