#include <bits/stdc++.h>
using namespace std;
long long length(long long t) {
  if (t <= 9) return 1;
  return 1 + length(t / 10);
}
int main() {
  int k;
  cin >> k;
  set<long long> snuke;
  for (long long i = 1; i < 10; i++) snuke.insert(i);
  for (long long i = 19; i < 100; i += 10) snuke.insert(i);
  long long u = 9;
  long long d = 3;
  for (int(_i) = 0; (_i) < (13); (_i)++) {
    for (long long b = 1; b <= u; b++) {
      long long t = b;
      while (length(t) < d) {
        t *= 10;
        t += 9;
      }
      snuke.insert(t);
    }
    u += 10;
    d++;
  }
  for (auto x : snuke) {
    if (k > 0)
      cout << x << endl;
    else
      break;
    k--;
  }
  return 0;
}
