import math,sysfrom math import factorialfor line in sys.stdin: m,n = map(int,line.split()) print(factorial(m)//(factorial(n)* factorial(m-n)))