object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n,m,x,y = sc.nextInt
  val xs = List.fill(n)(sc.nextInt)
  val ys = List.fill(m)(sc.nextInt)

  println(if ((x::xs).max < (y::ys).min) "No War" else "War")
}