def f(m,n):
if n < 0 or m < 0:
return 0
elif n == 1:
return 1
else:
return f(m,n-1)+f(m-n,n)
while True:
try:
m,n=map(int,input().split())
print(f(m,n))
except:
break
def f(m,n):
if n < 0 or m < 0:
return 0
elif n == 1:
return 1
else:
return f(m,n-1)+f(m-n,n)
while True:
try:
m,n=map(int,input().split())
print(f(m,n))
except:
break