#define _CRT_SECURE_NO_WARNINGS
#define _SILENCE_CXX17_C_HEADER_DEPRECATION_WARNING
#include <bits/stdc++.h>
using namespace std;
#define CRP(t, x) const t &x
#define OPL(t, x) bool operator<(CRP(t, x)) const
#define FIL(x, v) memset(x, v, sizeof(x))
#define CLR(x) FIL(x, 0)
#define NE1(x) FIL(x, -1)
#define INF(x) FIL(x, 0x3f)
#ifndef _DEBUG
#define _DEBUG 0
#endif // !_DEBUG
#define IFD if (_DEBUG)
typedef long long ll, i64;
const int N = 1e6 + 60;
char *strs[] = {"0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "19",
                "29",
                "39",
                "49",
                "59",
                "69",
                "79",
                "89",
                "99",
                "199",
                "299",
                "399",
                "499",
                "599",
                "699",
                "799",
                "899",
                "999",
                "1999",
                "2999",
                "3999",
                "4999",
                "5999",
                "6999",
                "7999",
                "8999",
                "9999",
                "19999",
                "29999",
                "39999",
                "49999",
                "59999",
                "69999",
                "79999",
                "89999",
                "99999",
                "199999",
                "299999",
                "399999",
                "499999",
                "599999",
                "699999",
                "799999",
                "899999",
                "999999",
                "1999999",
                "2999999",
                "3999999",
                "4999999",
                "5999999",
                "6999999",
                "7999999",
                "8999999",
                "9999999",
                "19999999",
                "29999999",
                "39999999",
                "49999999",
                "59999999",
                "69999999",
                "79999999",
                "89999999",
                "99999999",
                "199999999",
                "299999999",
                "399999999",
                "499999999",
                "599999999",
                "699999999",
                "799999999",
                "899999999",
                "999999999",
                "1999999999",
                "2999999999",
                "3999999999",
                "4999999999",
                "5999999999",
                "6999999999",
                "7999999999",
                "8999999999",
                "9999999999",
                "19999999999",
                "29999999999",
                "39999999999",
                "49999999999",
                "59999999999",
                "69999999999",
                "79999999999",
                "89999999999",
                "99999999999",
                "199999999999",
                "299999999999",
                "399999999999",
                "499999999999",
                "599999999999",
                "699999999999",
                "799999999999",
                "899999999999",
                "999999999999",
                "1999999999999",
                "2999999999999",
                "3999999999999",
                "4999999999999",
                "5999999999999",
                "6999999999999",
                "7999999999999",
                "8999999999999",
                "9999999999999",
                "19999999999999",
                "29999999999999",
                "39999999999999",
                "49999999999999",
                "59999999999999",
                "69999999999999",
                "79999999999999",
                "89999999999999",
                "99999999999999",
                "199999999999999",
                "299999999999999",
                "399999999999999",
                "499999999999999",
                "599999999999999",
                "699999999999999",
                "799999999999999",
                "899999999999999",
                "999999999999999",
                "1999999999999999",
                "2999999999999999",
                "3999999999999999",
                "4999999999999999",
                "5999999999999999",
                "6999999999999999",
                "7999999999999999",
                "8999999999999999",
                "9999999999999999"};
int main()
{
    int k;
    scanf("%d", &k);
    for (int i = 1; i <= k; i++)
    {
        /*putchar(i % 9 + '1');
        for (int j = i / 9; j; j--) putchar('9');
        if (i != k - 1) putchar('\n');*/
        puts(strs[i]);
    }
    return 0;
}