fun main(args: Array<String>) {
    val (N, M, X, Y) = readLine()!!.split(' ').map(String::toInt)
    val xs = readLine()!!.split(' ').map(String::toInt)
    val ys = readLine()!!.split(' ').map(String::toInt)
    if(listOf(xs.max()!!, X).max()!! < listOf(ys.min()!!, Y).min()!!) {"No War"} else {"War"}.run(::println)
}