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]

    for (let i = X; i <= Y; ++i) {
        for (let  j = 0;j < N;j++) {
            if (x[j] >= i) {
                console.log("War");
                return
            }
        }
        for (let k = 0;k < M;k++){
            if (y[k] < i){
                console.log("War")
                return
            }
        }
    }

    console.log("No War")
}

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