problem-7

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

Source: hackerearth | Difficulty: UNKNOWN_DIFFICULTY


Solutions:
t=eval(input())
print(t*t+(t-1)**2)


n=eval(input());
print(n*n+(n-1)*(n-1))



t=eval(input())
print(t*t+(t-1)**2)


n=eval(input())
print((n*(n+2)*(2*n+1))/8)


n=eval(input())
print(n*n+(n-1)**2)