#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
inline int countChar(string s, char c) {
  int cnt, i;
  cnt = 0;
  for (int(i) = (0); (i) < (s.size()); (i)++) {
    if (s[i] == c) cnt++;
  }
  return cnt;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
int main(void) {
  int k;
  cin >> k;
  int i, j;
  long long snuke = 1;
  for (int(i) = (1); (i) < (k + 1); (i)++) {
    int head = i % 9;
    int tail = i / 9;
    if (head > 0) {
      cout << head;
    }
    for (int(j) = (0); (j) < (tail); (j)++) {
      cout << 9;
    }
    cout << endl;
  }
  return 0;
}
