import std.stdio, std.string, std.range, std.conv, std.array, std.algorithm, std.math, std.typecons;

void main() {
    const tmp = readln.split.to!(int[]);
    const N = tmp[0], M = tmp[1], X = tmp[2], Y = tmp[3];

    const s0 = X+1;
    const e0 = Y;
    const s1 = readln.split.to!(int[]).sort!((a,b) => a < b).reduce!max + 1;
    const e1 = readln.split.to!(int[]).sort!((a,b) => a < b).reduce!min;

    writeln(s0 <= e0 && s1 <= e1 && s1 <= e0 && s0 <= e1 ? "No " : "", "War");
}

