๐ก ๊ท์น์ ์ฐพ์๋ด๋ฉด ์ฝ๊ฒ ํ ์ ์๋ค!!
0 -> ๋ณ ์ 2๊ฐ (2^0) +1 -> 2x2 = 4
1 -> ๋ณ ์ 3๊ฐ (2^1) +1 -> 3x3 = 9
2 -> ๋ณ ์ 5๊ฐ (2^2) +1 -> 5x5 = 25
3 -> ๋ณ ์ 9๊ฐ (2^3) +1 -> 9x9 = 81
=> (2^n + 1)^2
print((2**int(input())+1)**2)