#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll s(ll N) {
  long long int d = 1;
  long long int sum = 0;
  while (N > 0) {
    long long int x = (N / d) % 10;
    N -= x * d;
    sum += x;
    d *= 10;
  }
  return sum;
}
int main() {
  ll K;
  scanf("%lld", &K);
  ll x = 1;
  for (ll i = 0; i < K; i++) {
    while ((x + 1) * s(x) < x * s(x + 1)) x++;
    printf("%lld\n", x);
    x++;
  }
  return 0;
}
