open System

let N,M,X,Y=stdin.ReadLine().Split()|>fun c -> int c.[0],int c.[1],int c.[2],int c.[3]
let x =stdin.ReadLine().Split()|>Array.map int
let y =stdin.ReadLine().Split()|>Array.map int
[<EntryPoint>]
let main argv =
    let xmax = max X (Array.max x)
    let ymin = min Y (Array.min y)
    if xmax<ymin then "No War" else "War"
    |>stdout.WriteLine
    0