"use strict";
function Main(input) {
    let lines = input.split("\n");
    let cols = lines.shift().split(/\s/).map((v) => v - 0);
    let N = cols[0], M = cols[1], X = cols[2], Y = cols[3];
    let x = lines.shift().split(/\s/).map((v) => v - 0);
    let y = lines.shift().split(/\s/).map((v) => v - 0);
    let Xmax = Math.max(...x);
    let Xmin = Math.min(...x);
    let Ymax = Math.max(...y);
    let Ymin = Math.min(...y);
    const f = () => {
        if (X < Y) {
        if (Xmin < Y) {
        if (Xmax < Y) {
        if (X < Ymin) {
        if (X < Ymax) {
        if (Xmax < Ymin) {
            return true;
        } else return false;
        } else return false;
        } else return false;
        } else return false;
        } else return false;
        } else return false;
    }
    console.log(f() ? "No War" : "War");
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
