import java.util.*;
public class Main {
public static int f(int a,int b)
{
if(a<b) return 0;
if(b==0) return 1;
return f(a-1,b)+f(a,b-1);
}
public static void main(String[] args)
{
int a,b;
Scanner in=new Scanner(System.in);
a=in.nextInt();
b=in.nextInt();
System.out.println(f(a,b));
}
}
public class Main {
public static int f(int a,int b)
{
if(a<b) return 0;
if(b==0) return 1;
return f(a-1,b)+f(a,b-1);
}
public static void main(String[] args)
{
int a,b;
Scanner in=new Scanner(System.in);
a=in.nextInt();
b=in.nextInt();
System.out.println(f(a,b));
}
}