fun main (args : Array<String>) {
	val (n, m, x, y) = readLine()!!.split(" ")
	val X : Int = x.toInt()
	val Y : Int = y.toInt()
	val list1 = readLine()!!.split(" ")
	val list2 = readLine()!!.split(" ")
	var xList : MutableList<Int> = mutableListOf()
	var yList : MutableList<Int> = mutableListOf()
	var flag : Boolean = false
	for (i in list1) {
		xList.add(i.toInt())
	}
	for (i in list2) {
		yList.add(i.toInt())
	}
	xList.sort()
	yList.sort()
	for (i in xList[xList.size - 1]..yList[0]) {
		if ((i > X) && (i <= Y) && (i > xList[xList.size - 1]) && (i <= yList[0])) {
			flag = true
			break
		}
	}
	if (flag) {
		return println("No War")
	} else {
		return println("War")
	}
}