s = gets.chomp.split("")

n = s.size
sum = Array.new(n,0)

# 今の矢印を偶数ステップと奇数ステップで移動する子供の数
child = [1,0]
# 今見ている矢印の向き
tar = s[0]
# 同じ矢印が何個連続するか
cnt = 0
# 最後にRからLへ変化した位置
lastL = 0

for i in 2..n do
    if s[i-1] == tar
        cnt += 1
        child[cnt%2] += 1
    else
        if tar == "R"
            last = i-1
            sum[i-2] += child[0]
            sum[i-1] += child[1]
        else
            sum[last-1] += child[1]        
            sum[last] += child[0]
        end
        tar = s[i-1]
        cnt = 0
        child[0] = 1
        child[1] = 0
    end
end

sum[last] += child[0]
sum[last-1] += child[1]            

for i in 1..n do
    print sum[i-1]," "
end
