object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N, M, X, Y = sc.nextInt()
  val x = List.fill(N)(sc.nextInt())
  val y = List.fill(M)(sc.nextInt())
  println(if (x.max < y.min) "No War" else "War")
}
