#include<iostream>
using namespace std;
int n,m,p,sx[400],sy[400];
const int dx[]={0,0,1,1, 1,1,0,1, 1, 0,-1,-1,-1}
  ,dy[]=  {0,1,0,1,-1,0,1,1,-1,-1,-1, 0,1}
  ,dz[]=  {1,0,0,0, 0,1,1,1, 1, 1, 1, 1,1};
// int dx[]={0,1,1,0,-1,1,1,0,-1,-1,-1, 0, 1},
//         dy[]={0,0,1,1, 1,0,1,1, 1, 0,-1,-1,-1},
//         dz[]={1,0,0,0, 0,1,1,1, 1, 1, 1, 1, 1};
int game(){
  int borad[9][9][9]={0},s[2]={1,2};
  for(int i=0;i<p;i++){
    int x,y,z=1;
    x=sx[i];y=sy[i];
    while(borad[x][y][z])z++;
    borad[x][y][z]=s[i&1];
    for(int j=0;j<13;j++){
      int r=1;
      for(int k=1;
	  borad[x+k*dx[j]][y+k*dy[j]][z+k*dz[j]]==s[i&1];
	  k++)r++;

      for(int k=1;
	  borad[x-k*dx[j]][y-k*dy[j]][z-k*dz[j]]==s[i&1];
	  k++)r++;
      if(r>=m)return i+1;
    }
  }
  return 0;
}

int main(){
  while(cin>>n>>m>>p,n){
    for(int i=0;i<p;i++)cin>>sx[i]>>sy[i];
    int ans=game();
    if(!ans){
      cout << "Draw" << endl;
    }else{
      if(ans%2)cout << "Black ";
      else cout << "White ";
      cout << ans << endl;
    }
  }
  return 0;
}
  