s = gets.chomp
n = s.size
ans = Array.new(n, 0)

c = 0
x = 0
(n - 1).times do |i|
    c += 1
    if s[i] == "R" && s[i+1] == "L"
        x = i
        ans[x] += (c + 1) / 2
        ans[x + 1] += c / 2
        c = 0
    elsif s[i] == "L" && s[i+1] == "R"
        ans[x] += c / 2
        ans[x+1] += (c + 1) / 2
        c = 0
    end
end

c += 1
ans[x] += c / 2
ans[x + 1] += (c + 1) / 2

puts ans.join(" ")