#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K;
  cin >> K;
  vector<long long> ans;
  for (int i = 1; i <= 9; i++) ans.push_back(i);
  while ((int)ans.size() <= K) {
    for (int i = 0; i < 10; i++) {
      int index = ans.size() - 9;
      long long t = ans[index] * 10 + 9;
      ans.push_back(t);
    }
  }
  for (int i = 0; i < K; i++) cout << ans[i] << endl;
}
