

function Main(input) {
  input = input.split("\n");
  var S = input[0].split("");
  var anssub = new Array(S.length).fill(0);
  cnt=0;
  var lr = new Array(1).fill(-1);
  var rl = new Array();

  for(var i=1;i<S.length;i++){
    if(S[i-1]=="R"&&S[i]=="L"){
      rl.push(i-1);
    }else if(S[i-1]=="L"&&S[i]=="R"){
      lr.push(i-1);
    }
    if(i==S.length-1){
      lr.push(i);
    }
  }
  for(var i=lr.length-1;i>0;i--){
    if((lr[i]-lr[i-1])%2==0){
      anssub[rl[i-1]]=(lr[i]-lr[i-1])/2;
      anssub[rl[i-1]+1]=(lr[i]-lr[i-1])/2;
    }else{
      if((lr[i]-rl[i-1])%2==0){
        anssub[rl[i-1]]=Math.ceil((lr[i]-lr[i-1])/2);
        anssub[rl[i-1]+1]=Math.floor((lr[i]-lr[i-1])/2);
      }else{
        anssub[rl[i-1]]=Math.floor((lr[i]-lr[i-1])/2);
        anssub[rl[i-1]+1]=Math.ceil((lr[i]-lr[i-1])/2);
      }
    }
  }
  ans=anssub.join(" ");

  console.log('%s', ans);
  return ans;
}

function debug(n){
  var input = document.getElementById("input"+n).value;
  var ans=Main(input);
  var result="WA";
  if(ans==document.getElementById("output"+n).value.split("\n")[0]){
    result="AC";
  }
  document.getElementById("result"+n).innerHTML=result;
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));