s = gets.chomp.split('')
s.push('R')

index = 0
even = 0
odd = 0
first = 0
ans = Array.new(s.length, 0)
(s.length - 1).times do |i|
    d = s[i]
    _next = s[i + 1]
    even += 1 if i % 2 == 0
    odd += 1 if i % 2 != 0
    if d == 'R' and _next == 'R'
        index = i + 1

    elsif d == 'L' and _next == 'R'
        ans[index] = (index - first) % 2 == 0 ? even : odd
        ans[index + 1] = (index - first) % 2 == 0 ? odd : even
        even = 0
        odd = 0
        first = i + 1
        index = i + 1
    end
end

ans.delete_at(-1)
puts ans.join(" ")
