# Enter your code here. Read input from STDIN. Print output to STDOUT
def fact(t):
    fa=1
    while t>0:
        fa=fa*t
        t-=1
    return fa 
t=int(raw_input())
b=map(int,raw_input().strip().split(" "))
c=fact(t)/t
print c