#include int main(){ int b=1; char c; while(1){ std::cin.get(c); if(c!='L'&&c!='R')break; b*=2; b+=(c=='L'?0:1); } std::cout<