#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K, num = 1;
  cin >> K;
  while (K > 0) {
    long long div_num = 0, tmp = num;
    while (tmp != 0) {
      div_num += tmp % 10;
      tmp /= 10;
    }
    if (num / div_num == 1) {
      cout << num << endl;
      K--;
    }
    num++;
  }
  return 0;
}
