object Main {
  def main(args: Array[String]) {
    var count = 0
    var max_x = -101
    var min_y = 101


    for(line <- io.Source.stdin.getLines()){
      val factors = line.split(' ').map{_.toInt}
      if(count == 0) {
        max_x = factors(2)
        min_y = factors(3)
      }
      else if(count == 1) {
        factors.foreach { c =>
          if (max_x < c) {
            max_x = c
          } 
        }
      }
      else {
        factors.foreach { c =>
          if (c < min_y) {
            min_y = c
          } 
        }
      }
      count += 1
    }
    if (min_y < max_x) {
      println("War")
    }
    else {
      println("No War")
    }
  }
}
