open Scanf
open Printf

let rec scan_list = function
  | 1 -> scanf "%d " (fun k -> [k])
  | n -> scanf "%d " (fun k -> k :: scan_list (n-1))

let f n m x y =
  let xs = scan_list n in
  let ys = scan_list m in
  let xmax = List.fold_left max (-100) (x :: xs) in
  let ymin = List.fold_left min 100 (y :: ys) in
  if xmax < ymin
  then "No War"
  else "War"

let () = let ans = scanf "%d %d %d %d\n" f in
  printf "%s\n" ans