#!/usr/bin/env python3
n = int(input())
acc = [ 1, 0 ]
for i in range(2, n):
    acc[1 - i % 2] += i * acc[i % 2]
print(n * acc[n % 2])