import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int[][] g = new int[n+1][m+1];
if(n%2==0&&m%2==0){
System.out.println(0);
}else{
for(int i=1;i<=n;i)
for(int j=1;j<=m;j){
if(i == 1 || j == 1){
g[i][j] = 1;
}
}
for(int i=2;i<=n;i)
for(int j=2;j<=m;j){
//加上
if((i-1)%2 != 0 || j%2 != 0){
g[i][j] += g[i-1][j];
}
//加左
if(i%2 !=0 || (j - 1)%2 != 0){
g[i][j] += g[i][j-1];
}
}
System.out.println(g[n][m]);
}
}
}