import Data.Set

canGoBackHome :: String -> String
canGoBackHome s
  | (fromList s) == (fromList "NS") = "Yes"
  | (fromList s) == fromList "EW" = "Yes"
  | (fromList s) == fromList "NEWS" = "Yes"
  | otherwise = "No"

main = do
  s <- getLine
  putStrLn $ canGoBackHome s
