#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<long long int> v;
  for (int i = 1; i <= 8; i++) v.push_back(i);
  for (int i = 1; i <= 15; i++) {
    long long int n = pow(10, i) - 1;
    v.push_back(n);
    for (int j = 1; j <= 10 * i - 2; j++) {
      v.push_back(((long long int)pow(10, i) * j) + n);
    }
  }
  sort(v.begin(), v.end());
  int K;
  cin >> K;
  for (int i = 0; i < K; i++) cout << v[i] << endl;
  return 0;
}
