void main() {
    int[] tmp = readln.split.to!(int[]);
    int n = tmp[0], m = tmp[1], x = tmp[2], y = tmp[3];
    int[] a = readln.split.to!(int[]);
    int[] b = readln.split.to!(int[]);
    a ~= x;
    b ~= y;
    writeln(a.reduce!max < b.reduce!min ? "No War" : "War");
}

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