K_s = input()
sum = 0
for letter in K_s:
    sum = sum + int(letter)
K = int(K_s)
for n in range(1, K//sum):
    print(n)
count = K//sum-1
if K%sum !=0:
    print(n+1)
    count = count +1
i=2
while count < K:
    for j in reversed(range(sum*i)):
        if count == K:
            break
        print(K*i-j)
        count = count + 1
    i=i+1