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)
for i in range(1,10):
    s=snkue_number[-1]
    for j in range(i,(i-1)*10+9+1):
        snkue_number.append(s+j*10**(i+1))
print(snkue_number[:K])
