import math

num1, num2 = map(int, input().split())
list = [i for i in range(1, num1+num2)]

print(math.prod(list))