from scipy.special import comb N = int(input()) M = int(input()) print(comb(N,M,10**8))