#include <string>
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
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;
        }
    }


}