import java.math.BigInteger;
import java.util.Scanner;
public class jiecheng{
public static BigInteger A(int a){
BigInteger temp=new BigInteger("1");
BigInteger sum=new BigInteger("1");
for(int i=1;i<=a;i++){
sum = sum.multiply(temp);
temp=temp.add(new BigInteger("1"));
}
return sum;
}
public static BigInteger C(int a,int b){
BigInteger temp=new BigInteger("0");
BigInteger sum=new BigInteger("1");
for(int i=0;i<b;i++){
String tem=a+"";
BigInteger temp1=new BigInteger(tem);
BigInteger t2=temp1.subtract(temp);
BigInteger t1=sum.multiply(t2);
sum = t1.divide(temp.add(new BigInteger("1")));
temp=temp.add(new BigInteger("1"));
}
return sum;
}
public static void main(String args[]){
Scanner in=new Scanner(System.in);
int n;
while(true){
int a=in.nextInt();
int b=in.nextInt();
BigInteger res1=C(a,b);
System.out.println(res1);
}
}
}