#include<iostream>

using namespace std;
using ull = unsigned long long;

ull calcSunuke(ull n) {
  ull sunuke = 0;
  while (n != 0) {
    sunuke += n % 10;
    n /= 10;
  }
  return sunuke;
}

bool check(ull n, ull base) {
  return n * calcSunuke(n + base) <= calcSunuke(n) * (n + base);
}

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  ull K;
  cin >> K;

  ull c = 0;
  ull n = 0;
  ull base = 1;

  while (1) {
    if (K <= c) break;
    
    if (!check(n + base, base)) base *= 10;

    n += base;
    cout << n << endl;
    ++c;
  }

  return 0;
}