k = int(input())

count = 0
for i in range(1, pow(10, 15)):
    i_str = str(i)
    if count == k:
        break
    # 1の位
    if len(i_str) == 1:
        print(i)
        count+=1
    elif i_str[len(i_str)-1] == '9':
        print(i)
        count+=1