#define MD 998244353 ll@n,@m,@a[n+m];wt(Mint(XOR(a(n+m))?0:2)**(~-n*~-m*20));