
object Main extends App {
  val Array(n, m, x, y) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
  val x_list = scala.io.StdIn.readLine.split(" ").map(_.toInt).toList
  val y_list = scala.io.StdIn.readLine.split(" ").map(_.toInt).toList

  var list = (x_list :+ x).sorted
  var ans = true
  y_list.foreach { yy =>
    if (!list.forall(_ < yy)) {
      ans = false
    }

  }
  if (ans) {
    println("No War")
  } else {
    println("War")
  }
}
