import java.util.*

fun main(args: Array<String>) {
    val mod = 1000000007L
    val (N,M,X,Y) = readIntList()
    val x = Math.max(readIntList().max()!!,X)
    val y = Math.min(readIntList().min()!!,Y)

    println(if (x < y) "No War" else "War")
}

fun readString() = readLine()!!
fun readInt() = readLine()!!.toInt()
fun readLong() = readLine()!!.toLong()
fun readIntList() = readLine()!!.split(" ").map(String::toInt)
fun readLongList() = readLine()!!.split(" ").map(String::toInt)
