#define X(V,N,z)(0<=V+D[d][N]*z&&V+D[d][N]*z<n)
D[13][3]={{1,0,0},{0,1,0},{0,0,1},{1,1,0},{1,0,1},{0,1,1},{1,-1,0},{1,0,-1},{0,1,-1},{1,1,1},{-1,1,1},{1,-1,1},{1,1,-1}};
M[7][7][7];main(n,m,p,I,x,y,i,j,k,c,d,z,Z){for(;scanf("%d%d%d",&n,&m,&p),n;){
	for(memset(M,0,sizeof(M)),c=1,I=0;I<p;c*=-1){
		scanf("%d%d",&x,&y),x--,y--,I++;
		for(i=0;;i++)if(!M[x][y][i]){M[x][y][i]=c;break;}
		for(d=0;d<13;d++){
			for(z=0;z<m;z++)if(!X(x,0,z)||!X(y,1,z)||!X(i,2,z)||M[x+D[d][0]*z][y+D[d][1]*z][i+D[d][2]*z]!=c)break;
			for(Z=0;-m<Z;Z--)if(!X(x,0,Z)||!X(y,1,Z)||!X(i,2,Z)||M[x+D[d][0]*Z][y+D[d][1]*Z][i+D[d][2]*Z]!=c)break;
			if(z-Z-1>=m){printf("%s %d\n",c==1?"Black":"White",I);goto next;}
		}
			
	}
	puts("Draw");
next:
	for(;I<p;I++)scanf("%d%d",&x,&y);
}exit(0);}