open Printf
open Scanf

let id x = x
let pair x y = x, y

let n, m, x, y = scanf "%d %d %d %d" (fun n m x y -> n, m, x, y)

let array_cons v vs = Array.of_list (v :: Array.to_list vs)

let xs = array_cons x @@ Array.init n (fun _ -> scanf " %d" id)
let ys = array_cons y @@ Array.init m (fun _ -> scanf " %d" id)

let () = Array.sort (fun x y -> y - x) xs
let () = Array.sort (fun x y -> x - y) ys

let () =
  if xs.(0) < ys.(0) then
    print_endline "No War"
  else 
    print_endline "War"
