var toInt = x=>parseInt(x,10);
var toIntArr = arr=>arr.map(x=>toInt(x));
var abs = x=>x>0?x:-x;
function min(){var rest=arguments,v=rest[0];for(var i=1;i<rest.length;i++)if(rest[i]<v)v=rest[i];return v}
function max(){var rest=arguments,v=rest[0];for(var i=1;i<rest.length;i++)if(rest[i]>v)v=rest[i];return v}
function gcd(){var rest=arguments,v=rest[0],temp=(a,b)=>b?temp(b,a%b):a;for(var i=1;i<rest.length;i++)v=temp(v,rest[i]);return v}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
 
function Main(input){
	var input = input.split('\n');
	var nmxy = toIntArr(input[0].split(' '));
	var xs = toIntArr(input[1].split(' ')).sort((a,b)=>a-b);
	var ys = toIntArr(input[2].split(' ')).sort((a,b)=>a-b);
	var x = max(nmxy[2],xs[nmxy[0]-1]);
	var y = min(nmxy[3],ys[0]);
	var ans = y-x>0? 'No War': 'War';
	console.log(ans);
	return 0;
}