s = gets.chomp! + "R"
l = s.length - 1
ans = Array.new(l,0)
rl = {"R" => 0, "L" => 0}
pos = 0

l.times do |i|
    rl[s[i]] += 1
    if s[i] == "R" && s[i+1] == "L" then
        pos = i
    elsif s[i] == "L" && s[i+1] == "R"
        ans[pos] = rl["R"] / 2 + rl["L"] / 2 + rl["R"] % 2
        ans[pos+1] = rl["R"] / 2 + rl["L"] / 2 + rl["L"] % 2
        rl = {"R" => 0, "L" => 0}
    end
end

puts ans.join(" ")