K = int(input())

if K < 10:
    num_list = [i for i in range(1, K+1)]
    print(*num_list, sep='\n')
else:
    num_list = [i for i in range(1, 10)]
    n = 19
    while len(num_list) < K:
        if str(n)[-1] == '9':
            num_list.append(n)
        n += 1
    print(*num_list, sep='\n')
    