fun main(args: Array<String>) {
    val s = readLine()!!

    val x = mutableSetOf<Char>()
    val y = mutableSetOf<Char>()

    for (v in s) {
        when (v) {
            'N', 'S' ->
                y.add(v)
            'W', 'E' ->
                x.add(v)
        }
    }
    println(if (x.size % 2 == 0 && y.size % 2 == 0) "Yes" else "No")
}
