#include #include #include #include #include #include #include #include #include using namespace std; int n; int flag[20][20],tot,w,b; char g[20][20]; void dfs(int x,int y){ if (x<0 || y<0 || x>=n || y>=n) return; if (flag[x][y]) return; if (g[x][y]==1){ w=1; return; } if (g[x][y]==2){ b=1; return; } flag[x][y]=1; tot++; dfs(x+1,y); dfs(x-1,y); dfs(x,y+1); dfs(x,y-1); } int main() { int nb,nw,tb,tw; int i,j,x,y; while(1){ scanf("%d",&n); if (!n) break; memset(flag,0,sizeof(flag)); scanf("%d%d",&nb,&nw); memset(g,0,sizeof(g)); for(i=0;itb) printf("White wins by %d\n",tw-tb); if (tw