def jc(n):
re = 1
for i in range(1, n + 1):
re = re * i
return re
n, m = map(int, input().split())
print(int(jc(n + m)/(jc(n)*jc(m))))
def jc(n):
re = 1
for i in range(1, n + 1):
re = re * i
return re
n, m = map(int, input().split())
print(int(jc(n + m)/(jc(n)*jc(m))))