#include <bits/stdc++.h>
using namespace std;
long long int sod(long long int x) {
  int res = 0;
  while (x > 0) {
    res++;
    x /= 10;
  }
  return res;
}
int main() {
  long long int k, start = 1, add = 1;
  cin >> k;
  for (int i = 0; i < k; i++) {
    cout << start << "\n";
    if (sod(start) < sod(start + 1)) add *= 10;
    start += add;
  }
}
