fun main(args: Array<String>) {
    val s = readLine()!!
    val cs = s.contains("S")
    val cn = s.contains("N")
    val cw = s.contains("W")
    val ce = s.contains("E")
    println(if ((cs && cn || !cs && !cn) && (cw && ce || !cw && !ce)) "Yes" else "No")
}
