The main building of the nation is developing complex patterns as each day progresses.
The task is to find the number of three sided closed figures on the nth day.

(Input – n

Output – number of triangles)

SAMPLE INPUT
2

SAMPLE OUTPUT
5
n=input()
print (n*(n+2)*(2*n+1))/8