import Data.List
main = do
    (n:m:x:y:_)<-map read.words<$>getLine::IO [Int]
    xz<-maximum.map read.words<$>getLine::IO Int
    yz<-minimum.map read.words<$>getLine::IO Int
    --
    putStrLn $ if x > y then "War" else
               if xz > yz then "War" else
               if xz >= y || x >= yz then "War" else "No War"
