import Control.Applicative
import Control.Monad
import Data.List
import Data.Array
import Data.Char

main = do
  [n, m, x, y] <- map (read::String -> Int) . words <$> getLine
  arr1 <- reverse . sort . (++) [x] . map (read::String -> Int) . words <$> getLine
  arr2 <- sort . (++) [y] . map (read::String -> Int) . words <$> getLine
  putStrLn $ if arr2 !! 0 > arr1 !! 0  then "No War" else "War"
