import Data.List
main = mapM_ (putStrLn . solve) . lines =<< getContents
yes = "Yes"
no = "No"
solve t
  |(e>1) /= (w>1) = no
  |(n>1) /= (s>1) = no
  |otherwise = yes
  where [e,n,s,w] = map length . group . sort . ("ENSW"++) $ t