def factorial(number):
mult = 1
for i in range(1, number + 1):
mult *= i
return mult
n, k = list(map(int, input().split()))
result = factorial(n) / (factorial(k) * factorial(n - k))
print(result)
def factorial(number):
mult = 1
for i in range(1, number + 1):
mult *= i
return mult
n, k = list(map(int, input().split()))
result = factorial(n) / (factorial(k) * factorial(n - k))
print(result)