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

有待优化。