'use strict';

function main(arg) {
    let X = arg.split("\n")[0].split(" ").map(n=>parseInt(n))[2];
    let Y = arg.split("\n")[0].split(" ").map(n=>parseInt(n))[3];
    
    let x = arg.split("\n")[1].split(" ").map(n=>parseInt(n));
    let y = arg.split("\n")[2].split(" ").map(n=>parseInt(n));
    
    if(X < Y && Math.max(...x) < Math.min(...y)) {
            console.log("No War");
            return;
    }
    
    console.log("War")
    
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));