Manao is trying to open a rather challenging lock. The lock has n buttons on it and to open it, you should press the buttons in a certain order to open the lock. When you push some button, it either stays pressed into the lock (that means that you've guessed correctly and pushed the button that goes next in the sequence), or all pressed buttons return to the initial position. When all buttons are pressed into the lock at once, the lock opens.

Consider an example with three buttons. Let's say that the opening sequence is: {2, 3, 1}. If you first press buttons 1 or 3, the buttons unpress immediately. If you first press button 2, it stays pressed. If you press 1 after 2, all buttons unpress. If you press 3 after 2, buttons 3 and 2 stay pressed. As soon as you've got two pressed buttons, you only need to press button 1 to open the lock.

Manao doesn't know the opening sequence. But he is really smart and he is going to act in the optimal way. Calculate the number of times he's got to push a button in order to open the lock in the worst-case scenario.


-----Input-----

A single line contains integer n (1 ≤ n ≤ 2000) — the number of buttons the lock has.


-----Output-----

In a single line print the number of times Manao has to push a button in the worst-case scenario.


-----Examples-----
Input
2

Output
3

Input
3

Output
7



-----Note-----

Consider the first test sample. Manao can fail his first push and push the wrong button. In this case he will already be able to guess the right one with his second push. And his third push will push the second right button. Thus, in the worst-case scenario he will only need 3 pushes.

Difficulty: interview

Starter code:

Solutions:
x=int(input())
print(round(x*x*(x+1)/2-(x*(x+1)*((2*x)+1)/6)+(x)))



n=int(input())
ans=0
for i in range(n):
    ans+=(n-i)
    ans+=(i)*(n-i-1)
print(ans)


n = int(input())
s = sum([i * (n - i) for i in range(n)])
print(n + s)


n=int(input())
sum=0
i=1
while (i<n) :
    sum+=(n-i)*i
    i+=1
print(sum+n)


n = int(input())
print(n * (n * (n + 1)) // 2 - ((n - 1) * (2 * n - 1) * n) // 6 - (n * (n - 1)))


import math
import sys

def buttons():
    n = int(input())
    rightbuttons = n
    wrongbuttons = ((1+n)*(n/2))-n
    j = 1
    for i in range(n-2,0,-1):
        
        rightbuttons += j*i
        j += 1
    print(int(rightbuttons+wrongbuttons))
buttons()


n = int(input())
s = 0
for i in range(n):
    s += (n-i)*(i+1)-i

print(s)



n = int(input())
j = 1
s = n
while j < n:
    s += (n - j) * j
    j += 1
print(str(s))

import math
a=input()
b=math.ceil(int(a))
c=math.ceil((b*b*b+5*b)/6)
print(c)


N = int(input())
step = 1
S = 0
while step <= N:
    S = S + step * (N - step) + 1
    step = step + 1
print (S)

n = int(input())
ret = n 
for i in range(1, n): 
    ret += i * (n - i)
print(ret)

n=int(input())
print(int((n*(n+1)*(n-1))/6)+n)

n = int(input())
sum = 0
for x in range(1,n) :
	sum += (n - x) * x
sum += n
print(sum)


n = int(input())
pushes = 0

for i in range(n):
    pushes += ((i + 1) * (n - i)) - i
    
print(pushes)

n = int(input())
ans = n
for i in range(1, n + 1):
    ans += (n - i) * i
print(ans)

n = int(input())
print((n*n + 5)*n // 6)


n = int(input())
result = 0

for i in range(1, n):
    result += i * (n - i)

result += n
print(result)

n = int(input())
print((n * n + 5) * n // 6)

n = int(input())
print((n**3+5*n)//6)

n = int(input())

r = n

for i in range(n):
    r += (n-i-1)*(i+1)

print(r)


n = int(input())
print(n + sum(i*(n-i) for i in range(1,n)))

a=int(input())
tot=0
for x in range(1, a):
    tot+=(x*(a-x))
tot+=a
print(tot)


n = int(input())
c = n
r = 1
if n == 1 :
    print(n)
else:
    for i in range(n-1,1,-1):
        c += i
        c += r*(i-1)
        r += 1
    print(c + 1)

#!/usr/bin/env python3

def main():
    n = int(input())

    print(n * (n**2 + 5) // 6)

def __starting_point():
    main()

__starting_point()

n = int(input())
i = 1
b = 0
while i < n:
    b = b + i*(n-i)
    i = i + 1
else:
    print(b+n)