S = gets.chomp.chars
leng = S.length
initial_array = Array.new(leng, 1)
new_arr = Array.new(leng, 0)


10002.times do
  initial_array.each_with_index do |n, i|
    next if n == 0
    if S[i] == "R"
      new_arr[i+1] += n
    else
      new_arr[i-1] += n
    end
  end

  initial_array = new_arr
  new_arr = Array.new(leng, 0)
end

puts initial_array.join(" ")