import 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).max
  val yi = in.readLine.split(" ").map(_.toInt).min

  val z = yi
  val ans = if(x<z && xi < z && z < y) "No War" else "War"
  println(ans)
}
