#include <bits/stdc++.h>
using namespace std;

long sum_n(long n){
  long x = 0; long k = n; long sum = 0;
  while(k){
    x = k % 10;
    k = (k - x) / 10;
    sum += x;
  }
  return sum;
}

int main() {
  long K; cin >> K;
  long plusnum = 1; long ans = 0; long checkans = 0;
  for(long i = 0; i < K; i++){
    checkans = ans + plusnum;
    if (checkans > sum_n(checkans) * plusnum){
      plusnum *= 10;
        }
    ans += plusnum;
    cout << ans << endl;
  }
  return 0;
 
}