#include <bits/stdc++.h>
using namespace std;
int sum(int n) {
  int ret = 0;
  while (n) {
    ret += n % 10;
    n /= 10;
  }
  return ret;
}
int power(int x, unsigned int y) {
  int temp;
  if (y == 0) return 1;
  temp = power(x, y / 2);
  if (y % 2 == 0)
    return temp * temp;
  else
    return x * temp * temp;
}
int main() {
  int k;
  cin >> k;
  long long n = 1;
  long long mult = 1;
  while (k) {
    for (long long i = 1 * mult; i < 10LL * mult; i *= mult) {
      if (n > 3) {
        for (i; i < (n - 2LL) * mult; i += (mult / 10LL)) {
          cout << i << '\n';
          if (!(--k)) break;
        }
        if (!k) break;
        for (i = (n - 2LL) * mult; i < 10LL * mult; i += mult) {
          cout << i << '\n';
          if (!(--k)) break;
        }
      } else {
        for (i = mult; i < 10LL * mult; i += mult) {
          cout << i << '\n';
          if (!(--k)) break;
        }
      }
      break;
    }
    n++;
    mult *= 10;
  }
}
