#include <bits/stdc++.h>
using namespace std;
long long s(long long n);
int main() {
  long long k;
  cin >> k;
  for (int i = 1; i <= min(k, 9LL); i++) {
    cout << i << endl;
  }
  if (k <= 9) return (0);
  long long cnt = 9;
  long long n = 19;
  while (1) {
    if (cnt == k || n > s(n) * 10) break;
    cout << n << endl;
    n += 10;
    cnt++;
  }
  return (0);
}
long long s(long long n) {
  long long rec = 0;
  while (n) {
    rec += n % 10;
    n /= 10;
  }
  return rec;
}
