#include using namespace std; #define REP(i,a,b) for(i=a;i void writerLn(T x){writer(x,'\n');} int main(){ int i; int res = 1; for(;;){ mygc(i); if(i==EOF) break; if(i=='L') res *= 2; if(i=='R') res = res * 2 + 1; } writerLn(res); return 0; }