#include<bits/stdc++.h>
using namespace std;
#define rep(i,x,y) for(int i=x;i<y;i++)
#define range(a) (a).begin(),(a).end()
#define print(A,x,n) rep(i,0,n){cout<<(i ? " ":"")<<A[i]x;}cout<<endl;
#define pprint(A,y,m,n) rep(j,0,m){print(A[j],y,n);}
const long mod=998244353;
const int siz=1e5;
const long inf=1e9;
int digit(long a){
    int res = 0;
    while(a > 0){
        res += a % 10;
        a /= 10;
    }return res;
}
int main(){
	int K; cin>>K;
    long a = 1; long t = 1;
    int cnt = 0;
	rep(i,0,16){
		while(t <= a * digit(t)){
            cout<<t<<endl;
            if(++cnt == K) return 0;
            t += a;
		}t -= a; a *= 10; t += a;
	}
}