K = int(input())
if K <= 9:
    for i in range(K):
        print(i+1)
else:
    for i in range(9):
        print(i+1)
    a = K % 10
    b = K // 10
    for i in range(19, 10*(b*10+a+2), 10):
        print(i)