fun main(args: Array<String>) {
    for(i in 3..1){
        println(i)
    }
    val(n,m,x,y)= readLine()!!.split(" ").map{it.toInt()}
    val rx= readLine()!!.split(" ").map{it.toInt()}.max()!!
    val ly= readLine()!!.split(" ").map{it.toInt()}.min()!!
    for(pos in rx+1..ly){
        if((x+1..y).contains(pos)){
            println("No War")
            return
        }
    }
    println("War")
}