The input contains a single integer a (1≤a≤18257).
Print a single integer output (1≤output≤2·109).
2
13