#include <iostream>
#include <vector>
#include <string.h>

#define N_MAX 9

#define B 100
#define W 200

using namespace std;

int f[N_MAX][N_MAX][N_MAX];
int dx[13]={1,0,0,1,1,0,-1,-1, 0,1,-1, 1, 1};
int dy[13]={0,1,0,1,0,1, 1, 0,-1,1, 1,-1, 1};
int dz[13]={0,0,1,0,1,1, 0, 1, 1,1, 1, 1,-1};

int main(void)
{
	int n,m,p;
	int i1,i2;
	int x,y,z;
	int xx,yy,zz;
	int color;
	int count;

	while(1){
		memset(f,0,sizeof(f));
		cin>>n>>m>>p;
		if(n+m+p==0) break;

		count=0;

		for(i1=0;i1<p;i1++){
			cin>>x>>y;

			if(count>=m) continue;
			else{

				for(z=1;z<=n;z++){
					if(f[y][x][z]==0) break; 
				}
				color=100*(i1%2+1);
				f[y][x][z]=color;
				
				for(i2=0;i2<13;i2++){
					count=1;
					xx=x+dx[i2];
					yy=y+dy[i2];
					zz=z+dz[i2];
					while(f[yy][xx][zz]==color) {
						xx+=dx[i2];
						yy+=dy[i2];
						zz+=dz[i2];
						count++;
					}
					xx=x-dx[i2];
					yy=y-dy[i2];
					zz=z-dz[i2];
					while(f[yy][xx][zz]==color) {
						xx-=dx[i2];
						yy-=dy[i2];
						zz-=dz[i2];
						count++;
					}
					if(count>=m) break;
				}

				if(count>=m) {
					if(color==B) cout<<"Black "<<i1+1<<endl;
					else cout<<"White "<<i1+1<<endl;
				}
			}	
		}
		if(count<m) cout<<"Draw"<<endl;
	}

		return 0;
}