str_array = gets.split("")
array = []
str_array.count.times do
 array << 1
end
size = str_array.count - 1

100000.times do 
  new_array = []
  str_array.count.times do
    new_array << 0
  end
  (0..size).each do |i|
    if array[i] > 0
      if str_array[i] == "L"
       new_array[i - 1] += array[i]
      else
       new_array[i + 1] += array[i]
      end
    end
  end
  array = new_array
end

puts array.join(' ')