let () = Scanf.scanf "%d %d %d %d\n" @@ fun n m x y ->
  let max_xs = Array.fold_left max x @@
    Array.init n @@ fun _ -> Scanf.scanf "%d " @@ fun x -> x in
  let min_ys = Array.fold_left min y @@
    Array.init m @@ fun _ -> Scanf.scanf "%d " @@ fun y -> y in
  print_endline @@ if max_xs < min_ys then "No War" else "War"
