main :: IO ()
main = do
    [n, m, x, y] <- readInts
    xs           <- readInts
    ys           <- readInts
    putStrLn $ if solve n m x y xs ys then "No War" else "War"

solve :: Int -> Int -> Int -> Int -> [Int] -> [Int] -> Bool
solve n m x y xs ys = any (\z -> maximum xs < z && minimum ys >= z) [x + 1 .. y]

readInts :: IO [Int]
readInts = map read . words <$> getLine