import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); while(in.hasNext()){ int n = in.nextInt(); int m = in.nextInt(); System.out.println(getTotal(n,m)); }

}
public static int getTotal(int n,int m){
    if(n == 0 && m != 0) return 1;
    if(m == 0 && n != 0) return 1;
    return getTotal(n-1,m)+getTotal(n,m-1);
}

}