#44377: python


suyueh (suyueh)


p=int(input())
t=int(0)
for i in range(1,p+1):
  t=t+i*i
print(t)