fun main(args: Array<String>) {
    val (n, m, x, y) = readLine()!!.split(' ').map(String::toInt)
    val xx = readLine()!!.split(' ').map(String::toInt).max()!!
    val yy = readLine()!!.split(' ').map(String::toInt).min()!!
    println(if (x < y && xx < yy && 1 < yy - x && 1 < y - xx) "No War" else "War")
}
