const s = require('fs').readFileSync('/dev/stdin','utf8').trim().split('')
const n = s.length
const children = new Array(n).fill(1)
const tmp = new Array(n).fill(0)

const sNum = s.join('').replace(/R/g, 0).replace(/L/g, 1).split('').map(e => parseInt(e))

const blocks = s.join('').match(/(R+)|(L+)/g)
const maxBlock = blocks.reduce((a, b) => a.length > b.length ? a : b)
const maxBlockSize = maxBlock.length

const times = maxBlockSize - maxBlockSize % 2
for(var i=0;i<times;i++) {
  for(var j=0;j<children.length;j++) {
    if(sNum[j]) {
      if(children[j] > 0) {
        tmp[j] -= children[j]
        tmp[j-1] += children[j]
      }
    } else {
      if(children[j] > 0) {
        tmp[j] -= children[j]
        tmp[j+1] += children[j]
      }
    }
  }

  for(var j=0;j<children.length;j++) {
    children[j] += tmp[j]
  }
  tmp.fill(0)
}

console.log(children.join(' '))
