(x=>{
data = x.split('\n');
nmxy = data[0].split(' ');
li_1 = data[1].split(' ').map(Number);
li_2 = data[2].split(' ').map(Number);
X = nmxy[2];
Y = nmxy[3];
for(z = 0; z < Y; z++){
	if(X < z && li_1.filter(x=>x<z).length == li_1.length && li_2.filter(x=>x>=z).length == li_2.length) {
		console.log('No War');
		return;
	}
}
console.log('War');
})(require("fs").readFileSync("/dev/stdin", "utf8"));