#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  for (int i = 1; i <= min(n, 8); i++) cout << i << endl;
  if (n <= 8)
    return 0;
  else
    n -= 8;
  for (long long i = 0, bas = 9, k = 10; n; i++, bas = bas * 10 + 9, k *= 10) {
    for (long long j = i; n && j <= i * 10 + 9; j++) {
      printf("%lld\n", j * k + bas);
      n--;
    }
  }
  return 0;
}
