line = gets.chomp
len = line.length
count = [0, 0]
l_idx = nil
ans = [0] * len

(0...len).each do |idx|
  if line[idx] == "R"
    l_idx = nil unless l_idx.nil?
    count[idx % 2] += 1
    next
  end

  if l_idx.nil?
    l_idx = idx
    ans[l_idx - 1] = count[(l_idx - 1) % 2]
    ans[l_idx] = count[l_idx % 2]
    count = [0, 0]
  end

  ans[l_idx - ((idx - l_idx) % 2)] += 1
end

puts ans.join(" ")
