function Main(input) {
	input = input.split("\n");
	const S = input[0]
    var count = 0
	while(S[0] == S[count+1]){
		count++
	}
	const l = [count]
	for(i=1; i < S.length; i++){
		if(S[i] == "R"){
			if(S[i] == S[i-1]){
				l.push(l[i-1]-1)
			}else{
				var count = 0
				while(S[i] == S[i+count+1]){
					count++
				}
				l.push(count)
			}
		}else{
			if(S[i] == S[i-1]){
				l.push(l[l.length-1]-1)
			}else{
				l.push(0)
			}
		}
	}
  console.log(l)
	var res = new Array(l.length)
    res.fill(0)
	for(i=0; i < l.length; i++){
		pos = l[i] % 2 == 0 ? i+l[i] : S[i] == "R" ? i+l[i]+1 : i+l[i]-1
		res[pos]++
	}
	res = res.join(" ")
	console.log(res)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));