#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main() {
	int i=0, j = 1;
	int K;
	scanf("%d", &K);
	while(1) {
		int m = randM(tulingFunc(j));
		if(m/tulingFunc(m) >= j/tulingFunc(j) && i<K) {
			i++;
			printf("%d\n", j);
		}
		j++;
	}
    return 0;
}

int randM(int n) {
	return rand()%1+n;
}

int tulingFunc(int num) {
	int i = 0;
	int n = num;
	while(n!=0) {
		n = n / 10;
		i++;
	}
	int nums[i];
	int power = (int)pow((float)10, (float)i-1);
	int tmp, j, result = 0;
	for(j = 0;j<i;j++) {
		tmp = num / power;
		num = num % power;
		result += tmp;
	}
	return result;
} 