masu = gets.chomp.chars
ret = masu.size.times.map { 0 }
masu.size.times do |i|
  idx = i
  type = masu[idx]
  even = true
  loop do
    pre_idx = idx
    pre_type = type
    if type == 'R'
      idx += 1
    else
      idx -= 1
    end
    even = !even
    type = masu[idx]

    if type != pre_type
      if even
        ret[idx] += 1
      else
        ret[pre_idx] += 1
      end
      break
    end
  end
end
puts ret.join(' ')