n,a,b = map(int,input().split()) out = 1 for i in range(n-2): out *= (i+1) print(out)