s=gets.chomp.split("")
t=[]
ans=Array.new(s.size,0)
c,o,e=0,0,0
for i in 0..s.size-1
  if s[i]=="R"
    c+=1
    o+=1 if c%2==1
    e+=1 if c%2==0
  else
    if c%2==0
      ans[i]+=o
      ans[i-1]+=e
    else
      ans[i]+=e
      ans[i-1]+=o
    end
    c,o,e=0,0,0
  end
end
s.reverse!
ans.reverse!
c,o,e=0,0,0
for i in 0..s.size-1
  if s[i]=="L"
    c+=1
    o+=1 if c%2==1
    e+=1 if c%2==0
  else
    if c%2==0
      ans[i]+=o
      ans[i-1]+=e
    else
      ans[i]+=e
      ans[i-1]+=o
    end
    c,o,e=0,0,0
  end
end
ans.reverse!
for i in 0..s.size-1
  printf "#{ans[i]} "
end
