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>2:
	print (n*n)+4
else:
	print (n*n)+(n-1)