s=gets.chomp

a=[0]*s.size
idx=0
loop do
    if s[idx] == "R"
        e = s.index(/(L|$)/,idx)
        t = (e-idx)
        a[e-1] += t - t/2
        a[e] += t/2
        idx = e
    else
        e = s.index(/(R|$)/,idx)
        t = (e-idx)
        a[idx] += t - t/2
        a[idx-1] += t/2
        idx = e
    end
    break if idx >= s.size
end

print a.join(" ")