#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  bool end = false;
  int count = 0;
  long long int sunuke;
  long long int n9 = 9;
  long long int keta = 10;
  for (int i = 1; i <= 9 && end == false; i++) {
    count++;
    cout << i << endl;
    if (count == K) end = true;
  }
  for (int i = 1; i <= 15 && end == false; i++) {
    for (int j = 1; j <= 9 && end == false; j++) {
      count++;
      sunuke = keta * j + n9;
      cout << sunuke << endl;
      if (count == K) end = true;
    }
    n9 = n9 * 10 + 9;
    keta *= 10;
  }
  return 0;
}
