S = gets.chomp.split("")

children = Array.new(S.length)

for i in 0...(S.length - 1) do
  if S[i] == "R" && S[i+1] == "R" then
    children[i] = 0
  elsif S[i] == "L" && S[i+1] == "L" then
    children[i+1] = 0
  end
end

pointR = 0
for i in 0...S.length do
  pointR += 1 if S[i] == "R"
  if children[i] == nil && S[i] == "R" then
    children[i] = pointR
    next
  elsif S[i] == "L" then
    pointR = 0
  end
end

pointL = 0
for i in (S.length-1).downto(0) do
  pointL += 1 if S[i] == "L"
  if children[i] == nil && S[i] == "L" then
    children[i] = pointL
    next
  elsif S[i] == "R"
    pointL = 0
  end
end

count = 0
for i in 0...(S.length - 1) do
  count += 1 if children[i] == 0
  if children[i] > 0 && children[i+1] > 0 then
    if count.odd?  && (children[i] + children[i+1]).even? then
      children[i] = (children[i] + children[i+1]) / 2
      children[i+1] = children[i]
      count = 0
    elsif count.odd?
      children[i], children[i+1] = children[i+1], children[i]
      count = 0
    end
  end
end

puts children*" "
