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