fun main(arr: Array<String>) {
    println(if(mustWar()) "War" else "No War")
}

fun mustWar():Boolean {
    val (n,m,x,y) = readLine()!!.split(" ").map { it.toInt() }
    val xCities = readLine()!!.split(" ").map { it.toInt() }.sorted()
    val yCities = readLine()!!.split(" ").map { it.toInt() }.sorted()
    if(x >= y) {
        return true
    }
    if(xCities.last() >= yCities.first()) {
        return true
    }
    if(xCities.last() >= y) {
        return true
    }
    if(x >= yCities.first()) {
        return true
    }
    return false
}
