def addAll(bNew, pos):
    if pos[0] + 2 <= 8:
        if pos[1] + 1 <= 8:
            bNew.append([pos[0] + 2, pos[1] + 1])
        if pos[1] - 1 >= 1:
            bNew.append([pos[0] + 2, pos[1] - 1])
    if pos[0] + 1 <= 8:
        if pos[1] + 2 <= 8:
            bNew.append([pos[0] + 1, pos[1] + 2])
        if pos[1] - 2 >= 1:
            bNew.append([pos[0] + 1, pos[1] - 2])
    if pos[0] - 2 >= 1:
        if pos[1] + 1 <= 8:
            bNew.append([pos[0] -2, pos[1] + 1])
        if pos[1] - 1 >= 1:
            bNew.append([pos[0] -2, pos[1] - 1])
    if pos[0] - 1 >= 1:
        if pos[1] + 2 <= 8:
            bNew.append([pos[0] - 1, pos[1] + 2])
        if pos[1] - 1 >= 1:
            bNew.append([pos[0] - 1, pos[1] - 2])
    
def win(whiteArr, blackArr, wprob, bprob):
    if wprob < 0.000001 and bprob < 0.000001:
        print("draw")
        return
    wNew = []
    for pos in whiteArr:
        if pos in blackArr:
            print("black")
            return
        addAll(wNew, pos)
    bNew = []
    for pos in blackArr:
        if pos in wNew:
            print("white")
            return
        addAll(bNew, pos)
    
    win(wNew, bNew, wprob/len(wNew), bprob/len(bNew))
 
if __name__ == "__main__":
    arrwhite = []
    arrblack = []
    w = [int(x) for x in input("").split()]
    arrwhite.append(w)
    b = [int(x) for x in input("").split()]
    arrblack.append(b)

    win(arrwhite, arrblack,1,1)
    
