s = gets.strip
n = s.length
c = Array.new(n,0)
l,r,j,k = nil,nil,nil,-1
n.times do |i|
  if s[i,2] === "RL"
    j = i
    r = j - k
  elsif s[i,2] === "LR" || s[i,2] === "L"
    k = i
    l = k - j
    c[j] = ((r - 1)/2) + 1 + (l/2)
  	c[j + 1] = (r/2) + 1 + ((l - 1)/2)
  end
end
puts "#{c.join(" ")}"