import scala.io.StdIn._

/**
 * ABC110B
 */
object Main extends App {

  val Seq(_, _, x, y) = readLine().split(" ").toSeq.map(_.toInt)
  val xs = readLine().split(" ").toSeq.map(_.toInt)
  val ys = readLine().split(" ").toSeq.map(_.toInt)

  val isok = (xmax: Int, ymin: Int) => {
    if (x >= y) false
    else if (xmax >= ymin) false
    else if (xmax >= y) false
    else if (x >= ymin) false
    else true
  }

  val ans = if (isok(xs.max, ys.min)) "No War" else "War"

  println(ans)

}



    