S = gets.chomp.codepoints
N = S.size
R = 82
L = 76

result = Array.new(N, 1)

c = 0
0.upto(N-2) do |i|
  next if S[i] == L

  if S[i+1] == R
    c += 1
    result[i] = 0
  else
    div, mod = c.divmod(2)
    result[i] += div
    result[i+1] += div + mod
    c = 0
  end
end

c = 0
(N-1).downto(1) do |i|
  next if S[i] == R

  if S[i-1] == L
    c += 1
    result[i] = 0
  else
    div, mod = c.divmod(2)
    result[i] += div
    result[i-1] += div + mod
    c = 0
  end
end

puts result.join(' ')
