#include <bits/stdc++.h>
using namespace std;
double calc_s(int m) {
  double ans(0);
  while (m >= 1) {
    ans += m % 10;
    m /= 10;
  }
  return ans;
}
int main() {
  int k;
  cin >> k;
  long long ans(1), d(1);
  for (int i = 0; i < (k); ++i) {
    cout << ans << endl;
    while ((ans + d - 1) / calc_s(ans + d) >= d) {
      d *= 10;
    }
    ans += d;
  }
  return 0;
}
