object Main {

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)

    val N, M, X, Y = sc.nextInt()
    val x = Array.fill(N)(sc.nextInt())
    val y = Array.fill(M)(sc.nextInt())
    println(if (x.max < y.max) "War" else "No War") 
  }

}
