CF1180A.Alex and a Rhombus

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Alex and a Rhombus

While playing with geometric figures Alex has accidentally invented a concept of a nn-th order rhombus in a cell grid.

A 11-st order rhombus is just a square 1×11 \times 1 (i.e just a cell).

A nn-th order rhombus for all n2n \geq 2 one obtains from a n1n-1-th order rhombus adding all cells which have a common side with it to it (look at the picture to understand it better).

Alex asks you to compute the number of cells in a nn-th order rhombus.

Input

The first and only input line contains integer nn (1n1001 \leq n \leq 100) — order of a rhombus whose numbers of cells should be computed.

Output

Print exactly one integer — the number of cells in a nn-th order rhombus.

Note

Images of rhombus corresponding to the examples are given in the statement.

Samples

1
1
2
5
3
13

在线编程 IDE

建议全屏模式获得最佳体验