import std.stdio;
import std.ascii;
import std.conv;
import std.string;
import std.algorithm;
import std.range;
import std.functional;
import std.math;
import core.bitop;
import std.numeric;

T lread(T = long)()
{
    return readln.chomp.to!T();
}

T[] aryread(T = long)()
{
    return readln.split.to!(T[])();
}

void main()
{
    auto nmxy = aryread;
    auto X = aryread;
    auto Y = aryread;
    X.sort();
    Y.sort();
    if (X[$ - 1] < Y[0] && nmxy[2] < Y[0] && X[$ - 1] <= nmxy[3])
    {
        writeln("No War");
    }
    else
    {
        writeln("War");
    }
}
