K = int(input())

snuke = [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]

for n in range(3,16):
    for k in range(1,10):
        snuke.append(10**(n-1)*(10+k)-1)
    for k in range(2,10):
        snuke.append((k+1)*10**n-1)

for k in range(K):
    print(snuke[k])