import java.util.Scanner

fun main(args:Array<String>){
    val sc=Scanner(System.`in`)

    var n=sc.nextInt()
    var m=sc.nextInt()
    var x=sc.nextInt()
    var y=sc.nextInt()
    var xi=IntArray(n+1)
    var yi=IntArray(m+1)

    for (i in 0 until n){
        xi[i]=sc.nextInt()
    }
    xi[n]=x

    for (l in 0 until m){
        yi[l]=sc.nextInt()
    }
    yi[m]=y

    xi.sort()
    yi.sort()

    println(if (xi[n]>=yi[0]) "War" else "No War")
}