object Main extends App {

  import scala.io.StdIn.readLine
  val arr = readLine().trim.split("")
  var n, w, s, e = 0
  arr.foreach { e =>
    if (e == "N") n = n + 1
    else if (e == "W") w = w + 1
    else if (e == "S") s = s + 1
    else if (e == "E") e = e + 1
    else ()
  }

  if (n == s && e == w) {
    println("Yes")
  } else {
    println("No")
  }

}
