#include <bits/stdc++.h>
using namespace std;
bool check(long long number, long long nine) {
  int c = 0;
  while (number >= 9) {
    if (number % 10 == 9) {
      c++;
    }
    number = number / 10;
  }
  if (c == nine && number == 2) return 1;
  return 0;
}
int main() {
  long long k;
  int i;
  cin >> k;
  vector<long long> v;
  for (i = 0; i < 9; i++) {
    v.push_back(i + 1);
  }
  v.push_back(19);
  for (i = 29; i <= 99; i += 10) {
    v.push_back(i);
  }
  v.push_back(199);
  v.push_back(299);
  long long int nine = 3, start = 2;
  long long int add = 100;
  long long int push = 299;
  while (push <= 1000000000000000) {
    push += add;
    v.push_back(push);
    if (check(push, nine)) {
      add *= 10;
      nine++;
    }
  }
  for (i = 0; i < k; i++) {
    cout << v[i] << endl;
  }
}
