import math

n = int(input())

if n == 2:
    print(2)
else:
    print(n* math.comb(4*n - 4, 2*n - 4) - (n-1)*2)