import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		int k=1;
		long output = 1; 
		while(k<=K) {
			for(long i = output; i < Math.pow(10, 15); i+= Math.pow(10, countNineNumber(i))) {
				if(Math.pow(10, countNineNumber(i))*digitSum(i) >= i) {
					output = i+(int)Math.pow(10, countNineNumber(i));
					System.out.println(i);
					k++;
					break;
				}
			}
			if(output > Math.pow(10, 15)) {
				k++;
			}
		}

	}
	private static int countNineNumber(long n) {
		int count = 0;
		while(n!=0) {
			if(n%10==9) {
				count ++;
			}else {
				break;
			}
			n /= 10;
		}
		return count;
	}
	public static int digitSum(long n) {
		int sum = 0;
		while(n != 0) {
			sum += n%10;
			n /= 10;
		}
		return sum;
	}

}