import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val (n, m, x, y) = (sc.nextInt, sc.nextInt, sc.nextInt, sc.nextInt)
  val xs = (x +: Vector.fill(n)(sc.nextInt)).sorted
  val ys = (y +: Vector.fill(m)(sc.nextInt)).sorted
  println(if (xs.last < ys.head) "No War" else "War")
}
