s = gets.chomp
n = s.size

ans = Array.new(n, 0)

even_c = 0
odd_c = 0

(0..n-2).each do |i|
  if s[i] == 'R'
    if i.even?
      even_c += 1
    else
      odd_c += 1
    end
  end

  if s[i] == 'R' && s[i+1] == 'L'
    if i.even?
      ans[i] += even_c
      ans[i+1] += odd_c
    else
      ans[i] += odd_c
      ans[i+1] += even_c
    end
    even_c = 0
    odd_c = 0
  end
end

even_c = 0
odd_c = 0
j = 0
(n-1).downto(1) do |i|
  if s[i] == 'L'
    if j.even?
      even_c += 1
    else
      odd_c += 1
    end
  end

  if s[i] == 'L' && s[i-1] == 'R'
    if j.even?
      ans[i] += even_c
      ans[i-1] += odd_c
    else
      ans[i] += odd_c
      ans[i-1] += even_c
    end
    even_c = 0
    odd_c = 0
  end
  j += 1
end

puts ans.join(" ")