#include <bits/stdc++.h>
using namespace std;
double func(long long n) {
  long long n_tmp = n;
  double div = 0;
  while (n_tmp > 0) {
    div += (n_tmp % 10);
    n_tmp /= 10;
  }
  return (div);
}
int main() {
  long long K;
  cin >> K;
  long long cnt = 0;
  for (long long i = 1; true; i++) {
    if (i < 10) {
      cnt++;
      cout << i << endl;
    } else if (i % 10 == 9) {
      cnt++;
      cout << i << endl;
    }
    if (cnt == K) return 0;
  }
}
