#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  int l = 0;
  string q = "";
  while (k > l) {
    for (int i = 1; i < 10; i++) {
      cout << char(i + '0') << q << endl;
      l++;
      if (k <= l) break;
    }
    q += "9";
  }
  return 0;
}
