#include <iostream>
using namespace std;
int function(int n,int m);
int main()
{
int m, n;
cin >> n>>m;
long long a;
a = function(n,m);
cout <<a << endl;
return 0;
}
int function(int n,int m)
{
int sum = 1;
for (int i = n-m+1; i <= n; i++)
{
sum *= i;
}
return sum;
}
using namespace std;
int function(int n,int m);
int main()
{
int m, n;
cin >> n>>m;
long long a;
a = function(n,m);
cout <<a << endl;
return 0;
}
int function(int n,int m)
{
int sum = 1;
for (int i = n-m+1; i <= n; i++)
{
sum *= i;
}
return sum;
}