fun main() { val k = readLine()!!.toCharArray() println(kotlin.math.hypot((k.count { it == 'N' } - k.count() { it == 'S' }).toDouble(), (k.count { it == 'W' } - k.count { it == 'E' }).toDouble())) }