s = gets.strip.split('')

tmp = []
cluster = []
s.each do |c|
  if c=='R' && tmp.last=='L'
    cluster << tmp
    tmp=[]
  end
  tmp << c
end
cluster << tmp

result = []
cluster.each do |rl|
  r,l = rl.partition {|e| e=='R'}.map(&:length)
  rcount = [1, 0]
  lcount = [0, 1]

  rcount = [(r+1)/2, r/2] unless r==1
  lcount = [l/2, (l+1)/2] unless l==1
  sum_count = [rcount[0]+lcount[0], rcount[1]+lcount[1]]


  result << [0]*(r-1)
  result << sum_count
  result << [0]*(l-1)
end

puts result.flatten.join(' ')