n=int(input()) import math if n%2==0: m=n//2 print(math.factorial(m)*2) else: m=n//2+1 print(math.factorial(m))