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

    println(when {
        s.size == 4 -> "Yes"
        s.size == 2 && s.containsAll(listOf('N', 'S')) -> "Yes"
        s.size == 2 && s.containsAll(listOf('E', 'W')) -> "Yes"
        else -> "No"
    })
}