s = gets.chomp
n = s.length
ans = [0]*n

#count R
cnt = 0
n.times do |i|
  if s[i] == "L"
    ans[i] += cnt/2
    ans[i-1] += (cnt+1)/2
    cnt = 0
  else
    cnt += 1
  end
end

#count L
cnt = 0
(n-1).downto(0) do |i|
  if s[i] == "R"
    ans[i] += cnt/2
    ans[i+1] += (cnt+1)/2
    cnt = 0
  else
    cnt += 1
  end
end

puts ans.join(" ")
