unittest
{
	assert( [ "3 2 10 20", "8 15 13", "16 22" ].parse.expand.solve == "No War" );
	assert( [ "4 2 -48 -1", "-20 -35 -91 -23", "-22 66" ].parse.expand.solve == "War" );
	assert( [ "5 3 6 8", "-10 3 1 5 -100", "100 6 14" ].parse.expand.solve == "War" );
}



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

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto nmxy = input.front.split.to!( long[] );
	input.popFront;
	auto xs = input.front.split.to!( long[] );
	input.popFront;
	auto ys = input.front.split.to!( long[] );
	return tuple( nmxy[ 2 ], nmxy[ 3 ], xs, ys );
}

auto solve( long x, long y, long[] xs, long[] ys )
{
	auto xm = ( x ~ xs ).reduce!max;
	auto ym = ( y ~ ys ).reduce!min;
	
	return ( xm < ym ) ? "No War" : "War";
}
