K = int(input())
r = 0

for i in range(0, 10*100):
    for j in range(1, 9+1):
        S = str(j)+'0'*i
        if i == 0:
            k = int(S)
        else:
            k = int(S)+9
        if k <= K:
            print(k)
            r += 1
        else:
            break
    if r == K:
        break
