import std; void main() { ulong K; readf("%d\n", K); ulong res = 4 * K * K + 2; res.writeln; }