// parameter "input" gets all data
function Main(input) {
	let max = [], count = 0;
    for(let i = 0; i < input.length; i++){
        if(input[i] === 'R') count++;
        else if(input[i] === 'S') { max.push(count); count = 0; }
    }
    console.log(max);
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));