var me = 1 for s in stdin.readLine(): me *= 2 if s == 'R': me += 1 echo me