k = int(input())
sunuke = [1,2,3,4,5,6,7,8,9]


now = 10
l = 1
while len(sunuke) < k:
    tmp = []
    a = tmp.append
    for i in str(now):
        a(int(i))

    tmp2 = sum(tmp)

    if len(str(tmp2)) == len(tmp):

        sunuke.append(now)
        l = len(tmp)

    now += 1


for i in sunuke:
    print(i,end=" ")
print()