#include using namespace std; using ll = long long; template using Pa = pair; template using vec = vector; template using vvec = vector>; int main(){ cin.tie(0); ios::sync_with_stdio(false); int A,B; cin >> A >> B; int ans = 0; auto dfs = [&](auto&& self,int a,int b,vec& v)->void{ if(a==A && b==B){ int c = 0; for(int i=1;i v; dfs(dfs,0,0,v); cout << ans << "\n"; }