#include <bits/stdc++.h>
using namespace std;
unsigned long long calc(long long n) {
  unsigned long long sunuke = 0;
  while (n) {
    sunuke += n % 10;
    n /= 10;
  }
  return sunuke;
}
bool check(long long n, long long base) {
  return (n / calc(n)) <= ((base + n) / calc(base + n));
}
int main() {
  unsigned long long k;
  cin >> k;
  long long n = 0;
  long long base = 1;
  long long cnt = 0;
  while (1) {
    if (cnt >= k) return 0;
    if (!check(n + base, base)) base = 10;
    n += base;
    cout << n << endl;
    ++cnt;
  }
  return 0;
}
