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

void main() {
	auto data = readln.split.to!(int[]);
	auto N = data[0], M = data[1], X = data[2], Y = data[3];
	auto x = readln.split.to!(int[]), y = readln.split.to!(int[]);
	
	auto x_max = x.reduce!((a,b)=>max(a,b)), y_min = y.reduce!((a,b)=>min(a,b));
	
	if (x_max >= y_min) writeln("War");
	else {
		foreach (Z; x_max+1 .. y_min+1) {
			if (X < Z && Z <= Y) { writeln("No war"); return; }
		}
		writeln("War");
	}
}