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, 1000)])

# [print(i) for i in range(1, min(N + 1, 10))]
# [print(9 + 10 * i) for i in range(min(N - 9, 10))]
# [print(99 + 100 * i) for i in range(min(N - 19, 10))]

# [[print(10 ** k - 1 + 10 ** k * i) for i in range(1, min(N, 10 * (k + 1) - 1) - (10 * k - 1))] for k in range((N + 10) // 10)]
[[print(str(i) + (str(9) * k)) for i in range(1, min(10, N - 9 * k + 1))] for k in range((N + 10) // 10)]