#include <iostream>
#include <cstring>

using namespace std;

#define loop(i,a,b) for(int i=(a);i<int(b);i++)
#define rep(i,b) loop(i,0,b) 

int g[12][12][12];
int h[12][12];
int n, m, p;

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

bool check(int turn){
    int dx[] = { 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1 };
    int dy[] = { 0, 1, 0, 1, -1, 0, 0, 1, 1, 1, 1, -1, -1 };
    int dz[] = { 0, 0, 1, 0, 0, 1, -1, 1, -1, 1, -1, 1, -1 };
    rep(i, n)rep(j, n)rep(k, n){
        rep(l, 13){
            int ix = j, iy = i, iz = k, c = 0;
            while (valid(ix, iy, iz) && g[iy][ix][iz] == turn){
                ix += dx[l];
                iy += dy[l];
                iz += dz[l];
                c++;
            }
            if (m <= c) return true;
        }
    }
    return false;
}

int main(){
    while (cin >> n >> m >> p && n){
        memset(g, -1, sizeof(g));
        memset(h, 0, sizeof(h));
        int ans = -1;
        rep(i, p){
            int x, y;
            cin >> x >> y;
            x--; y--;
            g[y][x][h[y][x]] = i & 1;
            h[y][x]++;
            if (ans == -1 && check(i & 1)) {
                ans = i + 1;
            }
        }
        if (ans == -1) cout << "Draw";
        else if (ans & 1 == 1) cout << "Black" << " " << ans;
        else cout << "White" << " " << ans;
        cout << endl;
    }
}