let rec check num min_num x y =
  if num = min_num then "War"
  else if x < num && num <= y then "No War"
  else check (num-1) min_num x y
let () =
  let (n, m, x, y) = Scanf.scanf "%d %d %d %d\n" (fun a b c d -> (a, b, c, d)) in
  let xlst = Array.to_list (Array.init n (fun _ -> Scanf.scanf "%d " (fun x -> x))) in
  let ylst = Array.to_list (Array.init m (fun _ -> Scanf.scanf "%d " (fun x -> x))) in
  let max_x = List.fold_left max min_int xlst in
  let min_y = List.fold_left min max_int ylst in
  Printf.printf "%s\n" (check y (x+1) max_x min_y)