S = gets.chomp.chars
pre = Array.new(S.size, 1)

1000.times do
    arr = Array.new(S.size, 0)

    S.each_with_index do |s,i|
        if s == 'R'
            arr[i+1] += pre[i]
        else
            arr[i-1] += pre[i]
        end
    end

    pre = arr
end

puts pre.join(" ")