#pragma GCC optimize("O3")
#define first x
#define second y
#include <bits/stdc++.h>

using namespace std;

enum {MOD0 = 1000000000, MOD7 = 1000000007, MOD9 = 1000000009};
typedef unsigned short ushort;typedef unsigned int uint;typedef long long ll;typedef unsigned long long ull;
#ifndef CrafterKolyan
#define endl '\n'
#endif

void gen(int k) {
    ll cur = 1;
    ll pw10 = 1;
    while(k--) {
        cout << cur << endl;
        cur += pw10;
        if (cur >= 10 * pw10) {
            cur -= pw10;
            pw10 *= 10;
            cur += pw10;
        }
    }
    regen();
}

signed main() {
#ifndef CrafterKolyan
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
#endif
    int k;
    cin >> k;
    gen(k);
    return 0;
}
