array=gets.chomp.split("")
memory=Array.new
answer=Array.new(array.length,0)
lengths=Array.new
array.each_with_index do |x,i|
  if array[i] == "R" && array[i+1]=="L"
    memory.push(i)
  end  
  if array[i] == "L" && array[i+1]=="R" || i==array.length-1
    if lengths.empty?
      lengths.push(i+1)
    else  
      lengths.push(i+1-lengths.inject(:+) )
    end  
  end
end  
lengths.each_with_index do|x,i|
  if x%2==0
    tmp=x/2
    answer[memory[i]]=tmp
    answer[memory[i]+1]=tmp
  else
    answer_part=Array.new(x,0)
    tmp=x/2
    tmp_add=tmp+1
    if memory[i]%2==1
      answer[memory[i]]=tmp
      answer[memory[i]+1]=tmp_add
    else  
      answer[memory[i]]=tmp_add
      answer[memory[i]+1]=tmp
    end  
  end
end  
puts answer.join(" ")
