#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k, num, sum, dig;
  cin >> k;
  for (long long i = 1; i <= k && i <= 9; i++) cout << i << endl;
  k -= 9;
  for (long long i = 1; k >= 1; i++) {
    for (long long j = 1; k >= 1 && j <= 9; j++) {
      cout << j;
      for (long long f = 0; f < i; f++) cout << 9;
      cout << endl;
      k--;
    }
  }
  return 0;
}
