#include <stdio.h>
double fact(int n){
double r=1.0;
int i;
for (i=1;i<=n;i++){
r*=i;
}
return r;
}
double combine(int n,int m){
return fact(n)/(fact(m)*fact(n-m));
}
int main(){
int m,n;
int r;
if (scanf("%d %d",&m,&n)!=EOF){
r = combine(n,m);
printf("result = %d",r);
}else{
printf("int m,n wrong");
}
return 0;
}