object Main extends App {
	val Array(n, m, x, y) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
	val a = scala.io.StdIn.readLine.split(" ").map(_.toInt).max
	val b = scala.io.StdIn.readLine.split(" ").map(_.toInt).min

	var f1 = false

	for(cnt <- x+1 to y){
		if(cnt > a && cnt <= b){
			f1 = true
		}
	}

	if(f1) println("No War")
	else println("War")
}