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

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

void main() {
    auto nmxy = readints;
    int x = nmxy[2], y = nmxy[3];
    auto xs = readints;
    auto ys = readints;

    int xmax = (xs ~ [x]).reduce!((a, b) => max(a, b));
    int ymin = (ys ~ [y]).reduce!((a, b) => min(a, b));
    writeln(xmax < ymin ? "No War" : "War");
}
