import scala.io.StdIn

object Main extends App {

  val Array(n, m, x, y) = StdIn.readLine().split(" ").map(_.toInt)

  val xm = StdIn.readLine().split(" ").map(_.toInt).sorted.max
  val ymin = StdIn.readLine().split(" ").map(_.toInt).sorted.min

  println(if ((x + 1 to y).exists(k => xm < k && k <= ymin && xm < ymin)) "No War" else "War")
  
}