object Main {
  import java.util.Scanner
 
  def readStrings(n: Int)(implicit sc: Scanner): Array[String] = Array.fill(n) { sc.next() }
  def readInts(n: Int)(implicit sc: Scanner): Array[Int] = Array.fill(n) { sc.nextInt() }
  def readLongs(n: Int)(implicit sc: Scanner): Array[Long] = Array.fill(n) { sc.nextLong() }
  def readLineStrings(implicit sc: Scanner): Array[String] = sc.nextLine().split(' ')
  def readLineInts(implicit sc: Scanner): Array[Int] = readLineStrings.map(_.toInt)
  def readLineLongs(implicit sc: Scanner): Array[Long] = readLineStrings.map(_.toLong)
 
  def main(args: Array[String]): Unit = solve(new Scanner(System.in))
 
  def solve(implicit sc: Scanner): Unit = {
    val Array(n, m, _X, _Y) = readLineInts
    val x = readLineInts
    val y = readLineInts
    if ((x :+ _X).max < (y :+ _Y).min) {
      println("No War")
    } else {
      println("War")
    }
  }
}