let n, m, x, y = Scanf.scanf " %d %d %d %d" @@ fun a b c d -> a, b, c, d
let xs = Array.init n @@ fun _ -> Scanf.scanf " %d" @@ (+) 0
let ys = Array.init m @@ fun _ -> Scanf.scanf " %d" @@ (+) 0
let xmax = max x @@ Array.fold_left max xs.(0) xs
let ymin = min y @@ Array.fold_left min ys.(0) ys
let _ = print_endline @@ if xmax < ymin then "No War" else "War"