S = gets.chomp.chars
N = S.size

ans = Array.new(N,0)
%w(R L).each do |dir|
  c = 0
  S.each_with_index do |a,i|
    if a == dir
      c += 1
    else
      ans[i] += c/2
      ans[i-1] += (c+1)/2
      c = 0
    end
  end
  ans.reverse!
  S.reverse!
end

puts ans.join(" ")