#include <bits/stdc++.h>
using namespace std;
void print_sunuke(long long n) {
  long long n_digit;
  long long max_digit;
  n_digit = (n % 9 == 0) ? n / 9 : n / 9 + 1;
  max_digit = (n % 9 == 0) ? 9 : n % 9;
  cout << max_digit;
  for (long long i = 0; i < n_digit - 1; i++) {
    cout << 9;
  }
  cout << endl;
}
signed main() {
  long long k;
  cin >> k;
  for (long long i = 1; i <= k; i++) {
    print_sunuke(i);
  }
}
