import io.StdIn._
object Main extends App {
    val s = readLine

    val containsN = s.contains('N')
    val containsW = s.contains('W')
    val containsS = s.contains('S')
    val containsE = s.contains('E')

    if ((containsN && !containsS) ||
        (containsW && !containsE) ||
        (containsS && !containsN) ||
        (containsE && !containsW)) println("No")
    else println("Yes")

}