#include <bits/stdc++.h>
using namespace std;
int const N = 1e5 + 2;
int S(long long n) {
  int sum = 0;
  while (n) {
    sum += (n % 10);
    n /= 10;
  }
  return sum;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long k, n = 1;
  cin >> k;
  for (int i = 0; i < k; i++) {
    int t = true;
    while (t) {
      if (double(n) / S(n) <= double(n + 1) / S(n + 1)) {
        cout << n << endl;
        t = false;
      }
      n++;
    }
  }
}
