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

int s(long long n) {
  int sum = 0;
  while (n) {
	sum += n % 10;
  	n /= 10;
  }
  return sum;
}

int main () {
  int k;
  cin >> k;
  long long a = 0, d = 1;
  while (k--) {
    if(d*s(a+d)<a+d) d *= 10;
    a += d;
    cout << a << endl;
  }
}
