#include <bits/stdc++.h>
using namespace std;
int S(int n) {
  int ans = 0;
  string str;
  str = to_string(n);
  for (int i = 0; i < str.length(); i++) {
    ans += str[i] - '0';
  }
  return ans;
}
int main() {
  long long max;
  max = pow(10, 6);
  int k = 10;
  int now = 0;
  int digit = 0;
  bool repeat;
  while (k != 0) {
    repeat = true;
    while (repeat) {
      now++;
      bool sunuke = true;
      for (int i = now + 1; i <= max; i++) {
        if (S(i) * now > i * S(now)) {
          sunuke = false;
          break;
        }
      }
      if (sunuke) {
        k--;
        cout << now << endl;
        repeat = false;
      }
    }
  }
  return 0;
}
