#include <cstdio>
using namespace std;
 
int k;

int sumDig(long long x) {
  int res = 0;
	while (x) {
		res += x % 10;
		x /= 10;
  }
	return res;
}
 
int main() {
  scanf("%d", &k);
 	long long num = 1, add = 1;
  while (k--) {
    printf("%lld\n", num);
    while (double(num + add) / sumDig(num + add) > double(num + 2 * add) / sumDig(num + 2 * add)) add *= 10;
    num += add;
  }
  return 0;
}