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 maxX = xi.max
  val minY = yi.min
  val z = for(i <- (x+1) to y if i > maxX && i <= minY) yield {
    i
  }
  val ans = if(maxX < minY && z.nonEmpty) "No War" else "War"
  println(ans)
}