import math
n, k = map(int, input().split())
print(math.comb(n-1, k-1))