n = int(input())
factorial = 1
for x in range(1, 1 + n//2):
	factorial *= 4*x**2 + (-1)**(n-1) * 2*x
print(factorial)