fun main(arg: Array<String>) {
    val s = readLine()!!
    val m = mutableMapOf<Char, Int>(Pair('E', 0), Pair('W', 0), Pair('S', 0), Pair('N', 0))
    s.forEach { var d = m[it] ?: 0; m[it] = ++d }
    val we = (m['E']!! > 0 && m['W']!! > 0) || (m['E']!! == 0 && m['W']!! == 0)
    val ns = (m['N']!! > 0 && m['S']!! > 0) || (m['N']!! == 0 && m['S']!! == 0)
    println(if (we && ns) "Yes" else "No")
}