object Main extends App {

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

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

}
