process.stdin.resume();
process.stdin.setEncoding('utf8');

const reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout,
});

reader.on('line', s => {
  const RLs = s.split('LR').map(RL => `R${RL}L`);

  RLs[0] = RLs[0].slice(1);
  RLs[RLs.length - 1] = RLs[RLs.length - 1].slice(0, -1);

  const numbers = RLs.map(RL => {
    const n  = RL.length;
    const nR = RL.match(/(R+)/).pop().length;

    const [ R,  L  ] = [ nR, RL.length - nR ];
    const [ pR, pL ] = [ R % 2, L % 2 ];

    const result = [ ...new Array(n) ].map(_ => 0);

    switch (pR + pL) {
      case 0:
      case 2: {
        result[R - 1] = result[R] = n / 2;

        break; 
      }

      case 1: {
        result[R - 1] = Math.floor(n / 2) + 1 * pR;
        result[R]     = Math.floor(n / 2) + 1 * pL;

        break;
      }
    }

    return result;
  }).flatMap(xs => xs).join(' ');

  console.log(numbers);

  process.exit(0);
});
