S = gets.chomp.split("")

array = Array.new(S.length, 0)

r_length = 0
r_pos = 0
l_length = 0
S.each.with_index do |s, i|
  if s == 'R'
    if l_length > 0
      # calc
      array[r_pos] = (l_length + r_length) / 2
      array[r_pos+1] = (l_length + r_length) / 2
      if r_length.even? && l_length.odd?
        array[r_pos+1] += 1
      elsif r_length.odd? && l_length.even?
        array[r_pos] += 1
      end
      r_length = 0
      r_pos = 0
      l_length = 0
    end
    r_length += 1
    r_pos = i
  else
    l_length += 1
  end
end
array[r_pos] = (l_length + r_length) / 2
array[r_pos+1] = (l_length + r_length) / 2
if r_length.even? && l_length.odd?
  array[r_pos+1] += 1
elsif r_length.odd? && l_length.even?
  array[r_pos] += 1
end
print "#{array.join(' ')}\n"