# 2024年10月8日
def f(x,y):
    if x < 0 or y < 0:
        return 0
    elif x == 0 or y == 0:
        return 1
    else:
        return f(x,y-1)+f(x-1,y)


n,m = list(map(int,input().split()))
print(f(n,m))