#include using namespace::std; int main(void){ char s[31]; cin>>s; int r=1; for(int i=0;s[i]-'\0';) { r *= 2; if(s[i++]-'L') ++r; } cout<