char s[99],*t,*u;main(l){for(;gets(s);puts(s))if(l=strlen(s),strpbrk(s," R")){for(t=s+1,u=s+l;(t-s+1)