import java.io.{BufferedOutputStream, BufferedReader, InputStreamReader, PrintWriter}

object Main {
  def main(args: Array[String]): Unit = {
    val in = new BufferedReader(new InputStreamReader(System.in))
    val out = new PrintWriter(new BufferedOutputStream(System.out))
    val Array(n, m, x, y) = in.readLine().split("\\s+").map(_.toInt)
    val xs = in.readLine().split("\\s+").map(_.toInt)
    val ys = in.readLine().split("\\s+").map(_.toInt)

    val xsMax = xs.max
    val ysMin = ys.min

    out.println(
      if (xsMax >= ysMin) {
        "War"
      } else if (x < xsMax && xsMax < y || xsMax <= x && x < ysMin) {
        "No War"
      } else {
        "War"
      }
    )

    out.flush()
  }
}
