K = int(input())
groupN = K//9
ingroup = K%9
l = []

for i in range(groupN):
    l.extend([j*(10**i)-1 for j in range(2,11)])

l.extend(((i+1)*(10**(groupN)))-1 for i in range(1,ingroup+1))
l.extend(list(range(1099,1900,100)))
l = sorted(l)

for i in l:
    print(i)
