import Control.Applicative
import Data.List (elem)

main = do
  ss <- getLine
  let n = 'N' `elem` ss
      s = 'S' `elem` ss
      w = 'W' `elem` ss
      e = 'E' `elem` ss

  if ((n && s) || (not n && not s)) && ((e && w) || (not e && not w))
    then
      putStrLn "Yes"
    else
      putStrLn "No"
