import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val N = sc.nextInt()
    val M = sc.nextInt()
    val X = sc.nextInt()
    val Y = sc.nextInt()
    val x = (1..N).map { sc.nextInt() }.plus(X)
    val y = (1..M).map { sc.nextInt() }.plus(Y)
    println(if (x.max()!! < y.min()!!) "No War" else "War")
}