S = gets.chomp
N = S.size

ans = Array.new(N, 0)

counter = Hash.new(0)

(0).upto(N - 2) do |idx|
  if S[idx] == 'R' && S[idx + 1] == 'L'
    ans[idx] += 1

    if idx.even?
      ans[idx] += counter[0]
      ans[idx + 1] += counter[1]
    else
      ans[idx] += counter[1]
      ans[idx + 1] += counter[0]
    end

    counter = Hash.new(0)
  elsif S[idx] == 'R'
    counter[idx % 2] += 1
  end
end

counter = Hash.new(0)

(N - 1).downto(1) do |idx|
  if S[idx - 1] == 'R' && S[idx] == 'L'
    ans[idx] += 1

    if idx.even?
      ans[idx] += counter[0]
      ans[idx - 1] += counter[1]
    else
      ans[idx] += counter[1]
      ans[idx - 1] += counter[0]
    end

    counter = Hash.new(0)
  elsif S[idx] == 'L'
    counter[idx % 2] += 1
  end
end

puts ans.join(' ')
