import java.util.Scanner

fun main(args:Array<String>){
    val sc = Scanner(System.`in`);
    val n: Int = sc.nextInt()
    val m: Int = sc.nextInt()
    var xmax: Int = sc.nextInt()
    var ymin: Int = sc.nextInt()
    for(i in 1 .. n){
        var x = sc.nextInt()
        xmax = if(x > xmax) x else xmax
    }
    for(i in 1 .. m){
        var y = sc.nextInt()
        ymin = if(y < ymin) y else ymin
    }
    println(if(xmax < ymin) "No War" else "War")
}