# util functions

# debug
$debugFlag = ( ARGV[0] != nil )
p "==== DEBUG MODE ====" if $debugFlag

def pd(str)
  p str if $debugFlag
end

def printd(str)
  print str if $debugFlag
end

# input
inputs = []
lc = 0
while l = $stdin.gets do
  if true
    inputs << l.chomp.split(" ").map(&:to_s)
  else
    inputs << l.chomp.split(" ").map(&:to_i)
  end
  lc += 1
end

str = inputs[0][0]

# input check
if $debugFlag
  p "--- INPUT (begin) ---"
  inputs.each do |l_i|
    p l_i
  end
  p "--- INPUT (end) ---"
  print "\n"
end

# body
if $debugFlag
  p str
end

state = 0 # 0 -> R, 1 -> L
arr = []
cntr = 0
cntl = 0
str.length.times do |i|
  if str[i..i] == 'R'
    if state == 0
      cntr += 1
    else
      arr << [cntr-1, cntr, cntl]
      state = 0
      cntr = 1
    end
  else
    if state == 0
      state = 1
      cntl = 1
    else
      cntl += 1
    end
    if i == str.length - 1
      arr << [cntr - 1, cntr, cntl]
    end
  end
end

pd arr

arr.each do |arr_i|
  (arr_i[1]-1).times do
    print "0 "
  end
  if arr_i[1] % 2 == 1
    lnum = (arr_i[1] + arr_i[2])/2
    rnum = arr_i[1] + arr_i[2] - lnum
  else
    rnum = (arr_i[1] + arr_i[2])/2
    lnum = arr_i[1] + arr_i[2] - rnum    
  end
  print "#{rnum} #{lnum} "
  (arr_i[2]-1).times do
    print "0 "
  end  
end

print "\n"
