'use strict';

function main(stdin) {
  const S = 'L' + stdin.trim() + 'R';
  const L = 'L';
  const R = 'R';
  let ans = [];

  for (let i = 1; i < S.length - 1; ++i) {
    let a = 0;
    if (S[i] === L) {
      let l = 1;
      while (S[i - l] === R) ++l;
      if (l === 1) {
        ans.push(0);
        continue;
      }
      a += Math.ceil(l / 2);

      l = 1;
      while (S[i + l] === L) ++l;
      a += Math.floor((l - 1) / 2);
    } else {
      let l = 1;
      while (S[i + l] === L) ++l;
      if (l === 1) {
        ans.push(0);
        continue;
      }
      a += Math.ceil(l / 2);

      l = 1;
      while (S[i - l] === R) ++l;
      a += Math.floor((l - 1) / 2);
    }
    ans.push(a);
  }

  console.log(ans.join(' '));
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));