def mul(n): if n == 1: return 1 return n * mul(n-1)

a, b = map(int, input().split()) if b > a: print(0) else: print(int(mul(a)/mul(a-b)))