module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    [_, _, x, y] <- fmap read . words <$> getLine :: IO [Int]
    xs <- fmap read . words <$> getLine :: IO [Int]
    ys <- fmap read . words <$> getLine :: IO [Int]
    let maxx = maximum xs
    let miny = minimum ys
    let zs = [maxx + 1 .. miny]
    let nowar = any (\z -> x < z && z <= y) zs
    if nowar
        then putStrLn "No War"
        else putStrLn "War"