OneCompiler

cây thông

102

n = int(input())
kc = 4
cell = 1
for i in range(n):
cell+=kc
kc+=2

print(cell)