#include<iostream>
#include<cstring>
#include<string>
#include<algorithm>
#include<cmath>
#include<vector>
#include<deque>
#include<map>
#include<queue>
using namespace std;
#define rep(i,s,n) for(int i = s;i<n;i++)
#define repe(i,s,n) for(int i = s;i<=n;i++)
#define pb push_back
#define fi first
#define se second
typedef long long ll;
typedef pair<int,int>pint;
typedef vector<int>vint;
typedef vector<pint>vpint;
static const ll maxLL = (ll)1 << 62;
const int mod=1000000007;
int dy[]={-1,0,1,0};
int dx[]={0,1,0,-1};

/*#define int ll*/
int sum(long long n) {
    int r = 0;
    while (n > 0) {
        r += n % 10;
        n /= 10;
    }
    return r;
}
int main(){
    int k;
    cin >> k;
    long long a=1;
    long long p=1;
    for(int i=1;i<=k;i++){
        cout << a<< endl;
        long long c=a+p;
        long long d=a+p*10;
        if(c* sum(d) <= d * sum(c)){
            a=c;
        }
        else {
            a=d;
            p=p*10;
        }
    }
}