K = int(input())
digits = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for i in range(K):
    disp = str(digits[i % 9])
    n_nine = int(i / 9)
    for j in range(n_nine):
        disp += '9'
    if int(disp) <= 10**15:
        print(int(disp))