#include <iostream>
using namespace std;
typedef long long ll;
ll f(ll x){
    ll p=0;
    while(x){
        p+=x%10;
        x/=10;
    }
    return p;
}
int main(void){
    int n;
    cin>>n;
    ll a=0;
    ll b=1;
    for(int i=0;i<n;i++){
        if((a+b)*f(a+b*10)>(a+b*10)*f(a+b)){
            b*=10;
        }
        a+=b;
        cout<<a<<endl;
    }
}
