n,m = map(int,input().split()) v = 1 for i in range(n | m): v *= (i+1) print(v)