#include <bits/stdc++.h>
using namespace std;
int K;
int calcSum(int n) {
  int sum = 0;
  while (n > 0) {
    sum += n % 10;
    n /= 10;
  }
  return sum;
}
int main() {
  cin >> K;
  if (K < 10) {
    for (int i = 1; i < K; i++) cout << i << endl;
  } else {
    for (int i = 1; i < 10; i++) cout << i << endl;
    K -= 9;
    for (int i = 0; i < K;) {
      int c = i * 10 + 19, top = c;
      int cSum = calcSum(c);
      while (c / cSum == (c - 1) / calcSum(c - 1)) {
        c--;
      }
      while (c <= top && i < K) {
        cout << c++ << endl;
        i++;
      }
    }
  }
}
