from math import factorial as f n,m=map(int,input().split()) print(f(m+1)//(f(m-n)*f(n+1)))