#include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < n; i++)
#define repb(i, a, b) for(int i = a; i >= b; i--)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define int long long
#define first fi;
#define second se;
using namespace std;
typedef pair<int, int> P;

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 n, m, p;

bool contain(int x, int y, int z){
    return (0 <= z && z < n && 0 <= y && y < n && 0 <= x && x < n);
}

signed main(){
    while(1){
        cin >> n >> m >> p;
        if(n + m + p == 0) break;
        int d[7][7][7] = {};
        int h[7][7] = {};
        vector<int> x(p), y(p);
        rep(i, 0, p){
            cin >> x[i] >> y[i];
            x[i]--; y[i]--;
        }
        int f = 0;
        int ans = -1;
        int turn = 0;
        rep(i, 0, p){
            d[x[i]][y[i]][h[x[i]][y[i]]] = (i % 2 == 0 ? 1 : 2);
            h[x[i]][y[i]]++;
            rep(j, 0, n){
                rep(k, 0, n){
                    rep(l, 0, n){
                        int tmp = d[j][k][l];
                        if(tmp == 0) continue;
                        rep(t, 0, 13){
                            rep(s, 0, m){
                                int nx = j + dx[t] * s;
                                int ny = k + dy[t] * s;
                                int nz = l + dz[t] * s;
                                if(!contain(nx, ny, nz)) break;
                                if(d[nx][ny][nz] != tmp) break;
                                if(s == m - 1) f |= (1 << tmp);
                            }
                        }
                    }
                }
            }
            if(f){
                if(f == 6) ans = -1;
                if(f == 4) ans = 2;
                if(f == 2) ans = 1;
                turn = i + 1;
                break;
            }
        }
        if(ans == -1) cout << "Draw" << endl;
        else if(ans == 1) cout << "Black " << turn << endl;
        else if(ans == 2) cout << "White " << turn << endl;
    }
}