#include <bits/stdc++.h>
using namespace std;

const int dx1[]={0,1,1,1,0,-1,-1,-1};
const int dy1[]={-1,-1,0,1,1,1,0,-1};

const int dx2[]={};
const int dy2[]={};
const int dz2[]={};

const int dx3[]={1,1,-1,-1};
const int dy3[]={-1,1,1,-1};


int main() {
    int n,m,p;
    int ix,iy;
    while(true){
        cin>>n>>m>>p;
        pair<string,int> ans("Draw",-1);
        bool draw=true;
        if(n==0)break;
        vector<vector<vector<int>>> b(n,vector<vector<int>>(n,vector<int>(n,0)));
        bool black=true;
        for (int i = 1; i <= p; ++i) {
            cin>>ix>>iy;
            if(!draw)continue;
            --ix;--iy;
            for (int j = 0; j < n; ++j) {
                if(b[ix][iy][j]==0){
                    if(black)b[ix][iy][j]=1;//black:1
                    else b[ix][iy][j]=2;//white:2
                    break;
                }
            }
            for (int x = 0; x < n; ++x) {
                for (int y = 0; y < n; ++y) {
                    for (int z = 0; z < n; ++z) {
                        if(b[x][y][z]==0)continue;
                        for (int c = 0; c < 8; ++c) {//1D
                            for (int j = 1; j < m; ++j) {
                                if(x+dx1[c]*j>=n||y+dy1[c]*j>=n||x+dx1[c]*j<0||y+dy1[c]*j<0)continue;
                                if(b[x][y][z]!=b[x+dx1[c]*j][y+dy1[c]*j][z])break;
                                if(j==m-1){
                                    if(b[x][y][z]==1)ans=make_pair("Black",i);
                                    else ans=make_pair("White",i);
                                    draw=false;
                                }
                            }
                        }
                        for (int c = 0; c < 8; ++c) {//2Da:x-z
                            for (int j = 1; j < m; ++j) {
                                if(x+dx1[c]*j>=n||z+dy1[c]*j>=n||x+dx1[c]*j<0||z+dy1[c]*j<0)continue;
                                if(b[x][y][z]!=b[x+dx1[c]*j][y][z+dy1[c]*j])break;
                                if(j==m-1){
                                    if(b[x][y][z]==1)ans=make_pair("Black",i);
                                    else ans=make_pair("White",i);
                                    draw=false;
                                }
                            }
                        }
                        for (int c = 0; c < 8; ++c) {//2Db:y-z
                            for (int j = 1; j < m; ++j) {
                                if(y+dx1[c]*j>=n||z+dy1[c]*j>=n||y+dx1[c]*j<0||z+dy1[c]*j<0)continue;
                                if(b[x][y][z]!=b[x][y+dx1[c]*j][z+dy1[c]*j])break;
                                if(j==m-1){
                                    if(b[x][y][z]==1)ans=make_pair("Black",i);
                                    else ans=make_pair("White",i);
                                    draw=false;
                                }
                            }
                        }
                        for (int c = 0; c < 4; ++c) {//3Da:+z
                            for (int j = 1; j < m; ++j) {
                                if(x+dx3[c]*j>=n||y+dy3[c]*j>=n||z+j>=n||x+dx3[c]*j<0||y+dy3[c]*j<0||z+j<0)continue;
                                if(b[x][y][z]!=b[x+dx3[c]*j][y+dy3[c]*j][z+j])break;
                                if(j==m-1){
                                    if(b[x][y][z]==1)ans=make_pair("Black",i);
                                    else ans=make_pair("White",i);
                                    draw=false;
                                }
                            }
                        }
                        for (int c = 0; c < 4; ++c) {//3Db:-z
                            for (int j = 1; j < m; ++j) {
                                if(x+dx3[c]*j>=n||y+dy3[c]*j>=n||z-j>=n||x+dx3[c]*j<0||y+dy3[c]*j<0||z-j<0)continue;
                                if(b[x][y][z]!=b[x+dx3[c]*j][y+dy3[c]*j][z-j])break;
                                if(j==m-1){
                                    if(b[x][y][z]==1)ans=make_pair("Black",i);
                                    else ans=make_pair("White",i);
                                    draw=false;
                                }
                            }
                        }

                    }
                }
            }
            black=!black;
        }
        cout<<ans.first;
        if(ans.second!=-1)cout<<" "<<ans.second;
        cout<<endl;
    }
    return 0;
}


Measured memory_bytes: 3208