#include<iostream>
using namespace std;

typedef long long LL;

double s(LL n)
{
    LL x = n;
    LL y = 0;
    while (x)
    {
        y += x % 10;
        x /= 10;
    }

    return (double)n / y;
}

int main()
{
    LL K;
    LL n = 1;
    LL x = 1;

    cin >> K;

    for (int i = 0; i < K; i++)
    {
        cout << n << endl;
        if (s(n + x) > s(n + x * 10))
        {
            x *= 10;
        }

        n += x;
    }

    return 0;
}