local s = io.read()
local n = #s
local t = {}
for i = 1, n do
  t[i] = s:sub(i, i) == "R"
end

local lastpos = {}
local r_start_pos = 1
local curpos = 2
while curpos <= n do
  if t[curpos] then
    curpos = curpos + 1
  else
    -- L FOUND. curpos is L
    for i = r_start_pos, curpos - 1 do
      if (curpos - i) % 2 == 0 then
        lastpos[i] = curpos
      else
        lastpos[i] = curpos - 1
      end
    end
    local l_begin = curpos
    while curpos <= n do
      if t[curpos] then
        r_start_pos = curpos
        break
      else
        if (curpos - l_begin) % 2 == 0 then
          lastpos[curpos] = l_begin
        else
          lastpos[curpos] = l_begin - 1
        end
        curpos = curpos + 1
      end
    end
  end
end
local ret = {}
for i = 1, n do ret[i] = 0 end
for i = 1, n do
  local z = lastpos[i]
  ret[z] = ret[z] + 1
end
print(table.concat(ret, " "))
