def f(x,y): if x < 0 or y < 0: return 0 if x == 1 or y == 1: return 1 else: return f(x,y-1)+f(x-y,y) m,n = list(map(int,input().split())) print(f(m,n))