function main(arg) {
	arg  = arg.split("\n")
	var tmp = arg[0].split(" ").map((e) => Number(e))
	var x = tmp[2]
	var y = tmp[3]
	var xi = arg[1].split(" ").map((e) => Number(e))
	var yi = arg[2].split(" ").map((e) => Number(e))

	xi.push(x)
	yi.push(y)

	var xi_max = Math.max.apply(null, xi);
	var yi_min = Math.min.apply(null, yi);

	var i = 0
	var flag = false
	for (i = yi_min; i > xi_max; i--) {
		flag = true
		if (flag) {
			break
		}
	}

	if (flag) {
		console.log('No War')
	} else {
		console.log('War')
	}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));