ss = gets.chomp.split('')

childs = Array.new(ss.length, 0)

tmp = 0
ss.each_with_index { |s, i|
  if s == 'R'
    tmp += 1
  else
    childs[i] += tmp/2
    childs[i-1] += tmp/2+ tmp%2
    tmp = 0
  end
}

tmp = 0
ss.reverse!
childs.reverse!

ss.each_with_index do |s, i|
  if s == 'L'
    tmp += 1
  else
    childs[i] += tmp/2
    childs[i-1] += tmp/2 + tmp%2
    tmp = 0
  end
end

childs.reverse!

puts childs.join(' ')
