let scan4 f = stdin.ReadLine().Split() |> Array.map f |> (fun a -> (a.[0], a.[1], a.[2], a.[3]))
let scanVecH f = stdin.ReadLine().Split() |> Array.map f
 
let N, M, X, Y = scan4 int
let xs = scanVecH int
let ys = scanVecH int
 
let xmax = Array.max xs
let ymin = Array.min ys
 
[xmax+1..ymin]
|> List.exists (fun z -> X < z && z <= Y)
|> function
   | true -> printfn "No War"
   | false -> printfn "War"