object Main extends App{
    import scala.io.StdIn._
    val Array(n,m,x,y) = readLine().split("\\s").map(_.toInt)
    val x_array = readLine().split("\\s").map(_.toInt)
    val y_array = readLine().split("\\s").map(_.toInt)

    val x_max = x_array.max
    val y_min = y_array.min

    if (y<=x_max || y_min<=x){
      println("War")
    } else {
      println("No War")
    }
}