k = int(input())
cnt = 9

for i in range(1,9):
    print(i)
for i in range(10,1000000000000000000000):
    if cnt == k:
        break
    s = str(i)
    if s[len(s)-1] == '9':
        print(i)
        cnt = cnt + 1