#include <bits/stdc++.h>
using namespace std;
int digitsum(int _n) {
  long long int result = 0;
  while (_n) {
    result += _n % 10;
    _n /= 10;
  }
  return result;
}
int main() {
  long long int n, output_time = 0, i = 0;
  cin >> n;
  while (output_time < n) {
    if (((1.0 * i / digitsum(i)) <= ((1.0 * i + 1) / digitsum(i + 1))) &&
        ((1.0 * i / digitsum(i)) <=
         ((1.0 * i + (i / (i / pow(10, log10(i) - 1)))) /
          digitsum(i + (i / (i / pow(10, log10(i) - 1)))))) &&
        ((1.0 * i / digitsum(i)) <=
         ((1.0 * i + (i / (i / pow(10, log10(i))))) /
          digitsum(i + (i / (i / pow(10, log10(i)))))))) {
      output_time++;
      cout << i << endl;
    }
    i++;
  }
  return 0;
}
