fun main(args: Array<String>) {
    val (N, M, X, Y) = readInputLine().split(" ").map {it.toInt()}
    
    val xs = readInputLine().split(" ").map {it.toInt()}.sortedDescending()
    val ys = readInputLine().split(" ").map {it.toInt()}.sorted()
    
    for (i in X + 1..Y) {
        if (xs.first() < i && i <= ys.first()) {
            println("No War")
            return
        }
    }
    println("War")
}

fun readInputLine(): String {
    return readLine()!!
}
