include<iostream>
#include<vector>

int main() {
	int n = 0,k,j=10;

	std::cin >> k;

	/*
	for (int i = 1; i <= 9; i++) {
		std::cout << i;
	}

	for (int i = 0;i<k-9; i++) {
		if()
		std::cout << 9 + j;
		j = j + 10;
		
	}
	*/

	std::cout <<1<<2<<3<<4<<5<<6<<7<<8<<9<<19<<29<<39<<49<<59<<69<<79<<89<<99<<199<<299<<399<<499<<599<<699<<799<<899<<999<<1999<<2999<<3999<< std::endl;
	return 0;
}