#include<iostream>
#include<string>
#include<algorithm>
#include<utility>
#include<vector>
#include<map>
#include<set>
#include<tuple>
#include<stack>
#include<queue>
#include<functional>
#include<iterator>
#include<cmath>

using namespace std;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);

	long long k;
	cin >> k;	

	long long ans[k] = {1,2,3,4,5,6,7,8,9};
	long long num = 9;
	int keta=2;
	int check=100;
	for(long long i=19; num < k; i++){
		if(i - check >= 0){
			keta++;
			check *= 10;
		}
		if(i%(check/10) == (check/10 -1)){
			ans[num++] = i;
		}
	}
	for(long long i=0;i<k;i++){
		cout << ans[i] << "\n";
	}
	
		
	return 0;
}