#include<bits/stdc++.h>

using namespace std;

#define int long long
double a[1000005];

inline int get(int x) {
    int ans = 0;
    while (x > 0) {
        ans += x % 10;
        x /= 10;
    }
    return ans;
}

main() {
    int k, cnt = 9, lst = 9, add = 10, f = 10;
    cin >> k;
    for (int i = 1; i <= min(k, (long long)9); ++i) {
        cout << i << '\n';
    }
    k -= min(k, (long long)9);
    while (k > 0) {
        if (cnt == 0) {
            f = f + 9;
            cnt = f;
            add *= 10;
        }
        cnt--;
        lst += add;
        cout << lst << '\n';
        k--;
    }
    /*for (int x = 1; x <= 100000; ++x) {
        a[x] = x / (double)get(x);
    }
    int s = 0;
    for (int x = 1; x <= 50000; ++x) {
        int ok =  1;
        for (int y = x; y <= 100000 && ok; ++y) {
            if (a[y] < a[x]) ok = 0;
        }
        if (ok) s++;
    }
    cout << s;*/
}
