#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K;
  cin >> K;
  for (long long i = 0; true; ++i) {
    for (long long j = 1; j < 10; ++j) {
      cout << j;
      for (long long i2 = 0; i2 < i; ++i2) {
        cout << 9;
      }
      cout << endl;
      K--;
      if (K == 0) exit(0);
    }
  }
}
