#include <bits/stdc++.h>
using namespace std;
using vi = vector<long long>;
using pint = pair<long long, long long>;
inline void io() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout.tie(0);
  cout << fixed << setprecision(20);
}
inline long long in() {
  long long n;
  scanf("%lld", &n);
  return n;
}
inline void out(long long n) { printf("%lld\n", n); }
const long long INF = 1LL << 55;
const long long MOD = 1000000007;
const double EPS = 1e-8;
long long k;
unsigned long long cur = 19;
long long digitsum(long long n) {
  long long sum = 0;
  while (n > 0) {
    sum += n % 10;
    n /= 10;
  }
  return sum;
}
long double val(long long n) {
  return (long double)n / (long double)digitsum(n);
}
void a(long long i) {
  if (i < 10) {
    printf("%lld\n", i);
    return;
  }
  while (true) {
    if (val(cur) > val(cur + 10LL)) {
      cur += 10LL;
    } else
      break;
  }
  printf("%lld\n", cur);
  cur += 10LL;
}
signed main() {
  io();
  cin >> k;
  for (long long i = 1; i < k + 1; ++i) {
    a(i);
  }
  return 0;
}
