#include <bits/stdc++.h>
using namespace std;
void f(long long n) {
  if (n <= 0) return;
  if (n >= 9) {
    f(n - 9);
    cout << 9;
  } else {
    f(n - 9);
    cout << n;
  }
}
int main() {
  long long K;
  cin >> K;
  for (long long i = 1; i <= K; i++) {
    f(i);
    cout << endl;
  }
}
