#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int k;
  cin >> k;
  int check = 0;
  while (k > 0) {
    int i = 1;
    while (i < 10 && k > 0) {
      cout << i;
      for (int j = 0; j < check; j++) {
        cout << 9;
      }
      cout << endl;
      k--;
      i++;
    }
    check++;
  }
  return 0;
}
