fun main(args: Array<String>) {
    val (N, M, X, Y) = readLine()!!.split(' ').map(String::toInt)
    val x = readLine()!!.split(' ').map(String::toInt).sorted()
    val y = readLine()!!.split(' ').map(String::toInt).sorted()
    if (x[N-1] >= y[0] || x[N-1] >= Y || y[0] <= X) {
        println("War")
    }
    else {
        println("No War")
    }
}