import std.stdio;
import std.algorithm;
import std.conv;
import std.string;

void main()
{
	auto tokens = split(chomp(readln()));
	auto n = to!int(tokens[0]);
	auto m = to!int(tokens[1]);
	auto x = to!int(tokens[2]);
	auto y = to!int(tokens[3]);

	int[] a, b;
	a ~= x;
	foreach (token; split(chomp(readln())))
	{
		a ~= to!int(token);
	}
	a.sort();
	b ~= y;
	foreach (token; split(chomp(readln())))
	{
		b ~= to!int(token);
	}
	b.sort();

	//bool isWar = !(a[$-1] < y && b[0] > x && a[$-1] < b[0]);
	bool isWar = !(a[$-1] < b[0]);
	
	writeln(isWar ? "War" : "No War");
	stdout.flush();
}