#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); i++)
#define int long long
#define double long double
#define all(a) a.begin(), a.end()
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
using namespace std;

signed main(void){
    
    int K; cin >> K;
    int cur = 0, add = 1;

    auto sum = [](int x){
        int res = 0;
        while(x > 0)res += x % 10, x /= 10;
        return res;
    };

    auto judge = [&](int x, int y){
        return x * sum(y) <= y * sum(x);
    };

    rep(i, K){
        if(!judge(cur + add, cur + add * 10))add *= 10;
        cur += add;
        cout << cur << endl;
    }

}