#include <bits/stdc++.h>
using namespace std;
int getSunuke(int in) {
  string input = to_string(in);
  int s = 0;
  for (int i = 0; i < (int)input.size(); ++i) {
    char a = input[i];
    s += a - '0';
  }
  return s;
}
int main() {
  int K;
  cin >> K;
  int ans = 0;
  int c = 1;
  while (ans != K) {
    if (float(c) / float(getSunuke(c)) <=
        float(c + 1) / float(getSunuke(c + 1))) {
      ans++;
      printf("%i\n", c);
    }
    c++;
  }
  return 0;
}
