4 lines
50 B
Python
4 lines
50 B
Python
|
n = int(input())
|
||
|
|
||
|
print(round((n-1)*n*(n+1)/6+n))
|