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

    val maxX = x.max()!!
    val minY = y.min()!!

    val isPeaceful = (-100..100).find {z ->
        X < z && z <= Y && maxX < z && z <= minY
    } != null
    if (isPeaceful) {
        println("No War")
    } else {
        println("War")
    }
}