S = gets.chomp.chars
ans = S.map{0}
sum = [0, 0]
start_pos = 0
for i in 0..S.length-1
    if i > 0
        if S[i-1] == "R" && S[i] == "L"
            pos = i-1
        elsif S[i-1] == "L" && S[i] == "R"
            ans[pos] = sum[(pos + 1 - start_pos) % 2]
            ans[pos + 1] = sum[(pos - start_pos) % 2]
            sum = [0, 0]
            start_pos = i
        end
    end
    sum[(i - start_pos + 1) % 2] += 1
end
ans[pos] = sum[(pos + 1 - start_pos) % 2]
ans[pos + 1] = sum[(pos - start_pos) % 2]
puts ans.join(" ")