ss = gets.chomp

ans = [].fill(1, 0...ss.length)
for i in 0..(ss.length-1-1) do
  if ss[i..i+1] == 'RR' then
    ans[i+2] += ans[i]
    ans[i] = 0
  end
end
(ss.length-1).downto(1) do |i|
  if ss[i-1..i] == 'LL' then
    ans[i-2] += ans[i]
    ans[i] = 0
  end
end
puts ans.join(' ')