fun main(args:Array) { var current = 1 readLine()!!.forEach { if(it == 'R') { current *= 2 current++ } else { current *= 2 } } println(current) }