n = int(input())
summa = 0
for i in range(1, n + 1):
    summa += i ** 2
print(summa)

be8519957a11570e8e7a18070b007da409a0d883
<mask token>

<mask token>
for i in range(1, n + 1):
    summa += i ** 2
print(summa)

n = int(input())
summa = 0
for i in range(1, n + 1):
    summa += i ** 2
print(summa)
