fun main(args: Array<String>) {
    val S = readInputLine()

    println(if (!(S.contains("N") xor S.contains("S")) && !(S.contains("E") xor S.contains("W"))) "Yes" else "No")
}

fun readInputLine(): String {
    return readLine()!!
}
