n = input("")
n = int (n)
average = 0
sum = 0
for num in range(0,n+1,1):
    sum = sum+num
print("", sum )



cb8d761acee1d40cf0749ec47fda8aac15049d9c
<mask token>

<mask token>
for num in range(0, n + 1, 1):
    sum = sum + num
print('', sum)

n = input('')
n = int(n)
average = 0
sum = 0
for num in range(0, n + 1, 1):
    sum = sum + num
print('', sum)

n = input("")
n = int (n)
average = 0
sum = 0
for num in range(0,n+1,1):
    sum = sum+num
print("", sum )


