#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int K;
  long long int num = 940000;
  long long int max = 1000000000;
  long long int ans;
  double sum = 0;
  vector<long long int> sunuke;
  cin >> K;
  while (num > 0) {
    sum = 0;
    long long int A = num;
    for (int i = 15; i > -1; i--) {
      ans = A / (int)pow(10, i);
      sum += ans;
      A = A - (ans * pow(10, i));
    }
    if (max >= num / sum) sunuke.push_back(num);
    max = num / sum;
    num--;
  }
  reverse(sunuke.begin(), sunuke.end());
  for (int i = 0; i < K; i++) cout << sunuke[i] << endl;
  return 0;
}
