#include <bits/stdc++.h>
using namespace std;
int c, n;
long long a[155], snu[155];
int main() {
  for (int i = 1; i <= 150; ++i) {
    int rem = i;
    long long mul = 1;
    while (rem > 0) {
      int redu = min(rem, 9);
      rem -= redu;
      a[i] += redu * mul;
      mul *= 10;
    }
  }
  for (int i = 1; i <= 150; ++i) {
    bool f = true;
    for (int j = 1; j < i; ++j) {
      if (a[j] * i > a[i] * j) f = false;
    }
    if (f) snu[++c] = a[i];
  }
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cout << snu[i] << '\n';
  }
  return 0;
}
