object Main extends App {

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

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

}
