def mmm(n,m):
if m==0:
return 1
if m>0:
return (n-m+1)*mmm(n,m-1)
n,m=[int(x) for x in input().split()]
print(mmm(n,m))
def mmm(n,m):
if m==0:
return 1
if m>0:
return (n-m+1)*mmm(n,m-1)
n,m=[int(x) for x in input().split()]
print(mmm(n,m))