fun main(arr:Array<String>) {
    val (n,m,x,y) = readLine()!!.split(" ").map { it.toInt() }
    val xPoints = readLine()!!.split(" ").map { it.toInt() }.union(listOf(x)).sorted()
    val yPoints = readLine()!!.split(" ").map { it.toInt() }.union(listOf(y)).sorted()
    if(xPoints.last() < yPoints.first()) {
       println("No War")
    } else {
        println("War")
    }
}
