s = gets.chomp

array = Array.new(s.length, 1)

def step2(array, s)
    ret = Array.new(s.length, 0)
    array.each_with_index do |x, i| 
        if s[i] == 'R' && s[i+1] == 'R'
            ret[i+2] += x
        elsif s[i] == 'R' && s[i+1] == 'L'
            ret[i] += x
        elsif s[i] == 'L' && s[i-1] == 'R'
            ret[i] += x
        else
            ret[i-2] += x
        end
    end
    ret
end

while true
    ret = step2(array, s)
    if ret == array
        puts ret.join(" ")
        break
    end
    array = ret
end
