const s = require('fs').readFileSync('/dev/stdin','utf8').trim().split('')
const n = s.length
const blocks = s.join('').match(/(R+)|(L+)/g)

const numbers = []
for(var i in blocks) {
  var char = blocks[i][0]

  if(char === 'R') {
    for(var j=0;j<blocks[i].length-1;j++) {
      numbers.push(0)
    }

    var num = (blocks[i].length + blocks[i].length % 2) / 2
    numbers.push(num)
    num = (blocks[i].length - blocks[i].length % 2) / 2
    numbers.push(num)
  } else {
    var num = (blocks[i].length - blocks[i].length % 2) / 2
    numbers[numbers.length-2] += num
    num = (blocks[i].length + blocks[i].length % 2) / 2
    numbers[numbers.length-1] += num

    for(var j=0;j<blocks[i].length-1;j++) {
      numbers.push(0)
    }
  }
}

const answer = numbers.join(' ')
console.log(answer)
