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