def get_sum(n):
    str_n = str(n)
    ans = 0
    for d in str_n:
        d = int(d)
        ans += d
    return ans


def solve():
    k = int(input())
    n = 1
    while k != 0:
        nsum = get_sum(n)
        next_n = n + 1
        next_nsum = get_sum(next_n)
        if (n / nsum) <= (next_n / next_nsum):
            print(n)
            k -= 1
        n += 1

if __name__ == '__main__':
    solve()