#include <bits/stdc++.h>
using namespace std;
int digit_sum(long long n) {
  string n_str = to_string(n);
  int sum = 0;
  for (auto c : n_str) sum += (int)(c - '0');
  return sum;
}
long long f(long long n) {
  long long end_n = pow(10, (int)log10(n) + 1) - 1;
  long long candidate = n + 1;
  long long adder = 1;
  long long res = n + 1;
  while (candidate <= end_n) {
    if (candidate % (adder * 10) == adder * 10 - 1) adder *= 10;
    if (res * digit_sum(candidate) > candidate * digit_sum(res))
      res = candidate;
    candidate += adder;
  }
  return res;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int k;
  cin >> k;
  long long n = 1;
  for (int i = 0; i < k; ++i) cout << (n = f(n)) << endl;
  return 0;
}
