k = int(input())
count = 0
while True:
    ans = []
    count += 1
    if count == k+1:
        break
    if count%9!=0:
        ans.append(str(count%9))
    else:
        ans.append('9')
    digit = (count-1)//9
    for i in range(digit):
        ans.append('9')
    print(''.join(ans))