function Main(input) {
  var output = "";
  var position = [];
  for(var i = 0; i < input.length; i++){
    position.push(1);
  }
  
  for(var j = 0; j < 1e+100; i++){
    
  for(var i = 0; i < input.length; i++){
    var tmp = input.slice(i , i + 1);
    position[i]--;
    if(tmp == "R"){
       position[i + 1]++;
    }else{
       position[i - 1]++;
    }
  }
  }
  
  var output = "";
  for(var i = 0; i < position.length; i++){
    if(i == 0){
       output += position[i];
       }else{
        output += " "  + position[i];
       }
  }
  console.log(output);
}

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