#include <bits/stdc++.h>
using namespace std;
int digSum(long long num) {
  int S = 0;
  int dig;
  while (num) {
    dig = num % 10;
    S = S + dig;
    num = num / 10;
  }
  return S;
}
int main() {
  int K;
  cin >> K;
  int counter = 1;
  long long i = 1;
  while (1) {
    if (digSum(i) == counter) {
      cout << i << endl;
      counter++;
    }
    i++;
    if (counter == K + 1) {
      break;
    }
  }
  return 0;
}
