#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 35;
int n, m;
LL ans;
void dfs(int x, int y){
if(x < 1 || x > n || y < 1 || y > m) return ;
if(!(x % 2) && !(y % 2)) return ;
if(x == n && y == m){
ans++;
return ;
}
dfs(x + 1, y);
dfs(x, y + 1);
}
int main(){
cin>>n>>m;
dfs(1, 1);
cout<<ans;
return 0;
}
题意大概就是 从1,1 开始走 x,y都是偶数走不了 求走到n,m n,m <= 30