def main():
    K = int(input().strip())
    counter = 1
    n = K
    e = 1
    while counter < K:
        print(e)
        e += 1
        if (n/S(n)) <= (n+10000/S(n+10000)):
            counter += 1
        n += 1
    print(n)


def S(n):
    return sum([int(x) for x in str(n)])


if __name__ == '__main__':
    main()
