#include <bits/stdc++.h>
using namespace std;
int sum(int x) {
  int ret = 0;
  while (x) {
    ret += x % 10;
    x /= 10;
  }
  return ret;
}
double f(int n) { return double(n) / sum(n); }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int k;
  cin >> k;
  int n = 1, a = 1;
  while (k--) {
    cout << n << endl;
    while (f(n + a) > f(n + 2 * a)) {
      a *= 10;
    }
    n += a;
  }
}
