import java.util.*

fun main(args: Array<String>) {
    Scanner(System.`in`).use { sc ->
        val n = sc.nextInt()
        val m = sc.nextInt()
        val x = sc.nextInt()
        val y = sc.nextInt()
        val xx:Int = sc.asSequence().take(n).map { it.toInt() }.plus(x).sorted().last()
        val yy:Int = sc.asSequence().take(m).map { it.toInt() }.plus(y).sorted().first()
        println(if (xx < yy) "No War" else "War")
    }
}
