There are N children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give 1 candy to the first child in the line, 2 candies to the second child, ..., N candies to the N-th child. How many candies will be necessary in total?
def iroha():
    count = int(input())
    result = 0
    for i in range(count+1):
        print(i)
        result += i

    print(result)


if __name__ == "__main__":
    iroha()
def iroha():
    count = int(input())
    result = 0
    for i in range(count+1):
        result += i

    print(result)


if __name__ == "__main__":
    iroha()