object Main extends App {
  val str = scala.io.StdIn.readLine.toList
  if ((str.exists { _ == 'N' } == str.exists { _ == 'S' }) && (str.exists { _ == 'W' } == str.exists { _ == 'E' })) println("Yes")
  else println("No")
}