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

    inp.pop()
    var N = inp[0][0]
    var M = inp[0][1]
    var X = inp[0][2]
    var Y = inp[0][3]

    var x = inp[1]
    var y = inp[2]
    var flag = false

    for (var 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"))
