#include <bits/stdc++.h>
using namespace std;
string ch[10] = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
int main() {
  long long K;
  cin >> K;
  for (long long i = 1; i <= K; i++) {
    string s = "";
    for (long long k = i; k > 0; k -= 9) {
      if (k >= 9)
        s = ch[9] + s;
      else
        s = ch[k] + s;
    }
    cout << s << endl;
  }
  return 0;
}
