#include <bits/stdc++.h>
using namespace std;
long long K;
vector<string> v;
int main() {
  cin >> K;
  for (int i = 1; i <= 3; i++) {
    string tmp = "";
    for (int j = 0; j < i; j++) tmp.push_back('9');
    for (int j = 1; j <= 9; j++) {
      tmp[0] = ('0' + j);
      v.push_back(tmp);
    }
  }
  for (int i = 4;; i++) {
    string tmp = "";
    for (int j = 0; j < i; j++) tmp.push_back('9');
    for (int j = 0; j <= 9; j++) {
      tmp[0] = '1';
      tmp[1] = ('0' + j);
      v.push_back(tmp);
    }
    for (int j = 2; j <= 9; j++) {
      tmp[0] = ('0' + j);
      tmp[1] = '9';
      v.push_back(tmp);
    }
    if (v.size() >= K) break;
  }
  for (int i = 0; i < K; i++) {
    cout << v[i] << endl;
  }
  return 0;
}
