# frozen_string_literal: true

class Rl
  def initialize(str, r, l)
    @str = str
    @r = r
    @l = l
    calc_rls
  end

  def nums
    ns = []
    0.upto(@str.size - 1) do |i|
      if i == @r
        ns.push @rs
      elsif i == @l
        ns.push @ls
      else
        ns.push 0
      end
    end
    ns
  end

  def calc_rls
    if @r.odd?
      @rs = @str.size / 2
      @ls = @str.size - @rs
    else
      @ls = @str.size / 2
      @rs = @str.size - @ls
    end
  end
end

s = gets.chomp.split('')

rls = []
left = 0
rflag = true
r = 0
l = 0
0.upto(s.size) do |i|
  if rflag
    if s[i] == 'L'
      r = i - 1
      l = i
      rflag = false
    end
  else
    if i == s.size || s[i] == 'R'
      rflag = true
      rls.push Rl.new(s[left..(i-1)], r - left, l - left)
      left = i
    end
  end
end
nums = []
rls.each do |e|
  nums.push e.nums
end
puts nums.flatten.join(' ')
