import pprint


N = int(input().strip())

def calc_digit_sum(num):
    ret = 0
    while num > 0:
        ret += num % 10
        num //= 10

    return ret

def calc_digit_sums(K):
    return [[k + n for n in range(10)] for k in range(K)]

# pprint.pprint([(i, i / calc_digit_sum(i)) for i in range(1, 200)])

if N <= 9:
    [print(i) for i in range(1, N + 1)]

else:
    [print(i) for i in range(1, 10)]
    [print(9 + 10 * i) for i in range(1, N - 8)]