#include <bits/stdc++.h>
using namespace std;
constexpr int kMod = 1000000007;
int S(long long n) {
  int ans = 0;
  while (n > 0) {
    ans += n % 10;
    n /= 10;
  }
  return ans;
}
int main() {
  long long K;
  cin >> K;
  for (int i = 1; i <= 9; ++i) cout << i << endl;
  long long cnt = 9;
  long long base = 9;
  while (cnt < K) {
    for (int i = 1; i <= 9 && cnt < K; ++i) {
      cout << i << base << endl;
      ++cnt;
    }
    base = 10LL * base + 9LL;
  }
}
