S = gets.chomp.split("")

array = S.map{|_| 1}
before = S.map{|_| 0}

(10**100).times do |i|
  tmp = S.map{|_| 0}
  S.each.with_index do |s, i|
    if s == 'R'
      tmp[i+1] += array[i]
    else
      tmp[i-1] += array[i]
    end
  end
  if before == tmp && i % 2 == 0
    break
  end
  before = array
  array = tmp
end
print "#{array.join(' ')}\n"