s = gets.chomp
n = s.size
ans = Array.new(n,0)
a = 0
n.times do |i|
    if s[i] == "R"
        a += 1
    elsif a != 0
        ans[i] += a/2
        ans[i-1] += (a+1)/2
        a = 0
    end
end
n.times do |j|
    i = n-j-1
    if s[i] == "L"
        a += 1
    elsif a != 0
        ans[i] += a/2
        ans[i+1] += (a+1)/2
        a = 0
    end
end
puts ans.join(" ")