fun main(args: Array<String>) {
  val (N,M,X,Y) = readLine()!!.split(" ").map{it.toInt()}
  val xn = readLine()!!.split(" ").map{it.toInt()}
  val ym = readLine()!!.split(" ").map{it.toInt()}

  if(judge(X,Y,xn,ym)){
    println("No War")
    return
  }
    println("War")
}

fun judge(X: Int, Y: Int, listX: List<Int>, listY: List<Int>): Boolean {
  return (X+1..Y).any{index ->
    listX.all{
      it < index
    } && listY.all{
      it >= index
    }
  }
}