
{
long long sum = 1;
for(int i=1;i<=n;i++)
sum *= i;
return sum;
}
int main()
{
int n,m;
cin>>n>>m;
printf("%lld",fact(n)/(fact(m)*fact(n-m));
}