#include using namespace std; signed main(){ string s;cin>>s; int now=1; for(char p:s)now=now*2+(p=='R'); cout<