import java.util.*;
class Main{
static int d[][];
static int ans=0;
static int f(int x,int y) {
if(x>n||y>m) {
return 0;
}
if(x==n&&y==m) {
return 1;
}if(d[x][y]>0) {
return d[x][y];
}
if(x%2==0&&y%2==0) {
return 0;
}
d[x][y]+=f(x+1,y);
d[x][y]+=f(x,y+1);
return d[x][y];
}
static int n;
static int m;
public static void main(String[] args) {
Scanner in =new Scanner(System.in);
n=in.nextInt();
m=in.nextInt();
d=new int [n+1][m+1];
if(n%2==0&&m%2==0) {
System.out.println(0);
return;
}
System.out.println(f(1,1));
}
}