#include<iostream>
using namespace std;
int a,b;
int s;
void f(int x,int y)
{
if(x==a&&y==b) s++;
else
{
if(x<a) f(x+1,y);
if(y<b) f(x,y+1);
}
}
int main()
{
cin>>a>>b;
f(0,0);
cout<<s<<endl;
return 0;
}