object Main extends App {
  val Seq(_, _, x, y) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
  val Seq(xs, ys) = Range(0,2).map(_ => scala.io.StdIn.readLine.split(" ").map(_.toInt))
  println(
    if(Seq(x, xs.max).max < Seq(y, ys.min).min) "No War"
    else "War"
  )
}
