#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, j = 0, u = 0;
  long long int a, b = 0;
  cin >> k;
  for (long long int i = 1; j < k;) {
    cout << i << endl;
    j++;
    if (i % 9 == 0) {
      i = 2 * i + 1;
    } else {
      a = i;
      while (1) {
        a = a / 10;
        u++;
        if (a == 0) break;
      }
      b = pow(10, u - 1);
      u = 0;
      i += b;
    }
  }
  return 0;
}
