const main = (inputs) => {
  var N = inputs[0].length;
  var map = inputs[0].split("");
  var rarr = [];

  var tmp = 0;
  for(var i=0;i<N;i++){
    rarr[i] = 0;
    if(map[i] == "R"){
      tmp++;
    }else if(tmp>0){
      rarr[i] = ~~(tmp/2);
      rarr[i-1] = tmp-rarr[i];
      tmp = 0;
    }
  }
  tmp = 0;
  var larr = [];
  for(var i=N-1;i>=0;i--){
    larr[i] = 0;
    if(map[i] == "L"){
      tmp++;
    }else if(tmp>0){
      larr[i] = ~~(tmp/2);
      larr[i+1] = tmp-larr[i];
      tmp = 0;
    }
  }
  var anss = [];
  for(var i=0;i<N;i++){
    anss[i] = rarr[i] + larr[i];
  }
  console.log(anss.join(" "));
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));
