(defn DWT [[N M X Y] xs ys]
  (if  (< (apply max (cons X xs)) (apply min (cons Y ys)))
    "No War"
    "War"))


(defn input []
  (map #(Integer/parseInt % 10) 
    (clojure.string/split (read-line) #" ")))

(println
  (DWT (input) (input) (input)))