f=lambda n,k:n+k<1or(n>=k and f(n-1,k-1)+f(n-1,k))*k while 1:print f(*map(int,raw_input().split()))