fun main(args: Array<String>) {
    val (N, M, X, Y) = readLine()!!.split(" ").map(String::toInt)
    var x = readLine()!!.split(" ").map(String::toInt)
    var y = readLine()!!.split(" ").map(String::toInt)


    if (x.max()!! >= y.min()!!) {
        println("War")
        return
    }

    for (i in x.max()!! + 1..y.min()!!) {
        if (i in (X + 1)..Y) {
            println("No War")
            return
        }
    }

    println("War")

}