K = int(input())
a = [1]
while 1:
    big = a[-1]
    if len(str(big)) == len(str(big + 1)):
        a.append(big + 10**(len(str(big))-1))
    else:
        a.append(big + 10**(len(str(big))))
    if len(a) == K:
        break

for i in a:
    print(i)