n=int(eval(input()))

sum=0

for i in range(1,n+1):

    sum+=i

print(sum)

sum = 0

for i in range(1,int(eval(input()))+1):

    sum += i

print(sum)

n = int(eval(input()))
sum = 0
for i in range(1, n + 1):
    sum += i
print(sum)

sum = 0
for i in range(1, int(eval(input())) + 1):
    sum += i
print(sum)

-n = int(eval(input())) -for i in range(1, n + 1): +for i in range(1, int(eval(input())) + 1):