import scala.io.{StdIn => in}

object Main extends App {
  val Array(n, m, x, y) = in.readLine.split(" ").map(_.toInt)
  val xi = in.readLine.split(" ").map(_.toInt)
  val yi = in.readLine.split(" ").map(_.toInt)

  val xy = (xi ++ yi).sorted

  val res = (xy).filter(z => x < z && z <= y).exists(z => {
    var res = true
    for {
      i <- xi
      j <- yi
      } if(!(i < z) || !(z <= j)) res = false
    // if(res) println(z)
    res
  })

  val ans = if(res) "No War" else "War"
  println(ans)
}