
object Main extends App {

  import scala.io.StdIn._

  val Array(n, m, x, y) = readLine.trim.split(' ').map(_.toInt)
  val maxX = readLine.trim.split(' ').map(_.toInt).max
  val minY = readLine.trim.split(' ').map(_.toInt).min
  println(
    if (maxX < y && x < minY && maxX < minY) "No War"
    else "War"
  )
}
