#include <bits/stdc++.h>
using namespace std;
int calcS(int x) {
  int result = 0;
  while (x) {
    result += x % 10;
    x /= 10;
  }
}
int main() {
  int k;
  cin >> k;
  int i;
  int n = 1;
  for (i = 0; i < k; i++) {
    while (1) {
      int index = 1;
      int m = n;
      while (m / 10 != 0) {
        index++;
        m /= 10;
      }
      double tmp = (double)(n + 1) / (double)(9 * index);
      double tmp2 = (double)(n) / (double)(calcS(n));
      if (tmp > tmp2 || tmp == tmp2) {
        cout << n << endl;
        break;
      }
      n++;
    }
  }
  return 0;
}
