#include<bits/stdc++.h>
using namespace std;
#define ll long long 
int solve(long long x){
    int ans=0;
    while (x>0){
    	ans+=x%10;
    	x/=10;
    }
    return ans;
}
int main(){
    int k;
    cin>>k;
    ll n=0,m,y;
    int x;
    for(int i=0;i<k;i++){
        n++;
        m=n;
        for(int d=0;d<15;d++){
            if (pow(10, d)>n) break;
            x=(ll)(n/pow(10, d))%10;
            y=(ll)(n/pow(10, d))-x;
            for (int s=1;s<=10;s++){
                if (x>=s) continue;
                if (1.0f*((ll)((y+s)*pow(10,d))-1)/solve((ll)((y+s)*pow(10, d))-1)<1.0f*m/solve(m)){
                    m=(ll)((y+s)*pow(10,d))-1;
                }
            }
        }
        n=m;
        cout<<n<<'\n';
    }
}
