import java.io.{InputStream, OutputStream, PrintStream}
import java.util.Scanner

object Main {

  def main(args: Array[String]): Unit = {
    val solver = new Solver(System.in, System.out)
    solver.solve()
  }

  class Solver(in: InputStream, out: OutputStream) {
    lazy val input = new Scanner(in)

    lazy val output = new PrintStream(out)

    def solve(): Unit = {
      val ns @ Array(n, m, x, y) = input.nextLine().split(" ").map(_.toInt)
      val xs = input.nextLine().split(" ").map(_.toInt)
      val ys = input.nextLine().split(" ").map(_.toInt)
      val zs = xs ++ ys

      if (zs.filter(n => x < n && n <= y).exists(z => xs.forall(_ < z) && ys.forall(_ >= z)))
        println("No War")
      else
        println("War")
    }

  }

}
