function Main(input) {
    var N = input.length;
    var a = new Array(N);
    var tmp = new Array(N);
    a.fill(1);
    tmp.fill(1);
    
    for (var c = 0; c < Math.pow(10, 5); c++){

        for (var i = 0; i < N; i++){
            if (a[i] > 0) {
                
                if (input[i] === "R") {
                    tmp[i] -= a[i];
                    tmp[i + 1] += a[i];
                }
                else if (input[i] === "L") {
                    tmp[i] -= a[i];
                    tmp[i - 1] += a[i];
                }
            }
        }
        a = tmp.slice();
    }

  	//出力
	console.log(a);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));