object Main extends App {
  val in = io.StdIn.readLine.split(' ').map(_.toInt)

  val N = in(0)
  val M = in(1)
  val X = in(2)
  val Y = in(3)

  val xs = io.StdIn.readLine.split(' ').map(_.toInt)
  val ys = io.StdIn.readLine.split(' ').map(_.toInt)

  val boundX = (X +: xs).max
  val boundY = (Y +: ys).min

  val out = if (boundX < boundY) "No War" else "War"

  println(out)
}