n,k=input()
f=lambda s:s and s*f(s-1)or 1
print f(n)/f(k)/f(n-k)