codeforces#P171B. Star

Star

Description

The input contains a single integer a (1 ≤ a ≤ 18257).

Print a single integer output (1 ≤ output ≤ 2·109).

Input

The input contains a single integer a (1 ≤ a ≤ 18257).

Output

Print a single integer output (1 ≤ output ≤ 2·109).

Samples

2

13