function Main(input){
    inp = input.split('\n').map(x => x.split(' ')).map(y => parseInt(y, 10))

    let N = inp[0][0], M = inp[0][1], X = inp[0][2], Y = inp[0][3]
    let x = inp[1], y = inp[2]
    let flag = false

    for (let i = X+1; i <= Y; ++i) {
        if(Math.max(...x) < i && Math.min(...y) >= i){
            flag = true
        }
    }

    if(flag){
        console.log("No War")
    }else{
        console.log("War")
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"))
