S = gets.strip.split('')
output = {}
m = {}
firstLpost = nil
firstRpost = 0
lastI = 0
S.each_with_index do |s, i|
  lastI = i
  if firstLpost.nil?
    if s == 'L'
      output[i] ||= 0
      output[i] += (i - firstRpost)/2
      output[i-1] ||= 0
      output[i-1] += ((i - firstRpost)/2.0).ceil
      firstLpost = i
      firstRpost = nil
    end
  elsif s == 'R'
    output[firstLpost - 1] ||= 0
    output[firstLpost - 1] += (i - firstLpost)/2
    output[firstLpost] ||= 0
    output[firstLpost] += ((i - firstLpost)/2.0).ceil
    firstLpost = nil
    firstRpost = i
  end
end
if firstRpost.nil?
  lastI += 1
  output[firstLpost - 1] ||= 0
  output[firstLpost - 1] += (lastI - firstLpost)/2
  output[firstLpost] ||= 0
  output[firstLpost] += ((lastI - firstLpost)/2.0).ceil
end

puts S.length.times.map{|i| output[i] || 0}.join(' ')
