Problem: 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

Solution (in PYTHON):

Solution:
n = input()
if n == 1:
	print 1
else:
	print ((n*(n+2)*(n*2+1))/8)