ll@H,@W,L=2d4;a[H][W][L]{{{0,1}}},d;string@A[H];rep(i,H)rep(j,W)rep(c,L)d=A[i][j]=='o'?c-1:A[i][j]=='x'?d+1:-1,a[i][j][c]+=0<=d