import Data.Bits (xor)

main :: IO ()
main = putStrLn . yesno . solve =<< getLine

solve :: String -> Bool
solve xs = check 'N' 'S' xs && check 'S' 'E' xs

check :: Char -> Char -> String -> Bool
check x y xs = (x `elem` xs) `xor` (y `notElem` xs)

yesno :: Bool -> String
yesno True = "Yes"
yesno _ = "No"
