#include <iostream>
#include <cstdio>

using namespace std;

typedef long long ll;

ll k;
ll ans, now = 1;

ll s(ll p)
{
    ll re = 0;
    while(p != 0)
    {
        re += p % 10;
        p /= 10;
    }
    return re;
}

int main()
{
    scanf("%lld", &k);
    while(k--)
    {
        ans += now;
        if(s(ans) * (ans + now) < s(ans + now) * ans) ans -= now, now *= 10, ans += now;
        printf("%lld\n", ans);
    }
    return 0;
}
