#include <iostream>
using namespace std;
long fac ( int );
int main()
{
int m, n, c;
cin >>m >>n;
c = fac(m) / ( fac(n) * fac(m - n) );
cout <<c <<endl;
return 0;
}
long fac( int x )
{
int i, t = 1;
for( i = x; i > 0; i --)
t = t * i;
return t;
}