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)

for(var i=0;i<n-n%2;i++) {
  for(var j=0;j<children.length;j++) {
    if(s[j] === 'R') {
      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[j] = 0
  }
  console.log(children.join(' '))
}

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