<?php
//Request Question
function getq($get_word=null){
	if($get_word===null){
		return str_replace("\n","",fgets(STDIN));
	}else if($get_word===1){
		return explode(" ",str_replace("\n","",fgets(STDIN)));
	}
}

/*		START		*/
$K = getq();
for ($i=0; 1; $i++) { 
	for ($x=1; $x < 10; $x++) {
		echo $x;
		for ($z=0; $z < $i; $z++)echo '9';	
		echo "\n";
		$K--;
		if($K==0)exit();
	}
}
?>