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?
N=int(input())
i=0
for k in range(1,N):
    i=i+k
print(i)
N=int(input())
i=0
for k in range(1,N+1):
    i=i+k
print(i)