K=int(input())
snkue_number=[i for i in range(1,10)]
s=snkue_number[-1]
for j in range(1,9+1):
    snkue_number.append(s+j*10)

s=snkue_number[-1]
for j in range(1,19+1):
    snkue_number.append(s+j*100)

for i in range(2,15):
    for j in range((i+1)*10-i):
        snkue_number.append(snkue_number[-1]+10**(i+1))
print(snkue_number[:K])
