#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int K;
  cin >> K;
  string nines = "";
  int first = 1, last = 10, c = 0, cc = 0;
  while (true) {
    for (int i = first; i < last; i++) {
      if (K == c) return 0;
      printf("%d%s\n", i, nines.c_str());
      c++;
    }
    cc++;
    if (cc >= 4) first += 1;
    if (cc > 2)
      last += 10;
    else if (cc == 2)
      last += 9;
    nines = nines + "9";
  }
  return 0;
}
