#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  int count = 0;
  for (long long i = 1; i < 1000000000000000; i++) {
    long long k_sum = 0;
    long long esc = i;
    while (esc) {
      k_sum += esc % 10;
      esc /= 10;
    }
    if (i % 10 == 9 || i < 10) {
      cout << i << endl;
      count++;
    }
    if (count == K) break;
  }
}
