S = gets.chomp
N = S.size

current = S[0]
ans = Array.new(S.size) {1}
S.chars.each_with_index do |s, i|
  if S[i] == 'R'
    if i + 1 < N && S[i+1] == S[i]
      if i + 2 < N
        ans[i+2] += ans[i]
        ans[i] = 0
      else
        next
      end
    end
  end
end

(N-1).downto(0) do |i|
  if S[i] == 'L'
    if i - 1 >= 0 && S[i-1] == S[i]
      if i - 2 >= 0
        ans[i-2] += ans[i]
        ans[i] = 0
      else
        next
      end
    end
  end
end

puts ans.join(' ')
