#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 10000000;
int main() {
  ll K;
  cin >> K;
  ll count = 1;
  int keta = 1;
  ll num = 1;
  printf("K:%d,count:%d\n", K, count);
  while (K + 1 != count) {
    if (count < 10) {
      cout << count << endl;
    } else {
      string S = "";
      S += to_string(num);
      for (int i = 1; i <= keta; i++) {
        S += "9";
      }
      cout << S << endl;
      num++;
      if (num == 10) {
        num = 1;
        keta++;
      }
    }
    count++;
  }
  return 0;
}
