import Data.List
main=do
    s<-getLine
    putStrLn $ f s
f s = if (fn `xor` fs) && (fw `xor` fe) then "Yes" else "No"
    where
        fn = 'N' `elem` s
        fw = 'W' `elem` s
        fs = 'S' `elem` s
        fe = 'E' `elem` s
xor a b
    | a && b = True
    | not a && not b = True
    | otherwise = False