let LR = stdin.readLine var ans = 1 for m in LR: ans *= 2 if m == 'R': ans += 1 echo ans