s = gets.strip.split('')

current = []
result = []

s.each do |c|
  if current.last=='L' && c== 'R'
    r_count = current.select {|c| c=='R' }.length
    l_count = current.length - r_count
    l_value = r_value = current.length/2

    if current.length.odd?
      if r_count < l_count
        if (current.length/2).odd?
          r_value+=1
        else
          l_value+=1
        end
      else
        r_value+=1
      end
    end

    (r_count-1).times { result.push(0) }
    result.push(r_value)
    result.push(l_value)
    (l_count-1).times { result.push(0) }
    current = []
  end

  current.push(c)
end


    r_count = current.select {|c| c=='R' }.length
    l_count = current.length - r_count
    l_value = r_value = current.length/2

    if current.length.odd?
      if r_count < l_count
        if (current.length/2).odd?
          r_value+=1
        else
          l_value+=1
        end
      else
        r_value+=1
      end
    end

    (r_count-1).times { result.push(0) }
    result.push(r_value)
    result.push(l_value)
    (l_count-1).times { result.push(0) }

puts result.join(' ')

