#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);

	unsigned long long k;
	cin >> k;	

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

			tmp += (check/10);
			ans[num] = tmp;
		}
		for(long long i=0;i<k;i++){
			cout << ans[i] << "\n";
		}
	}
	
		
	return 0;
}