#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t k;
  cin >> k;
  for (int c = 0; k > 0; c++) {
    for (int i = 1; i < 10; i++, k--) {
      if (k == 0) break;
      cout << i;
      for (int j = 0; j < c; j++) cout << 9;
      cout << endl;
    }
  }
}
