S = gets.chomp.split("")

MEMO = { }

def dp(n, j)
  if n == 1
    if S[j] == "R"
      return j+1
    else
      return j-1
    end
  end

  if S[j] == "R"
    dp(n-1, j+1)
  else
    dp(n-1, j-1)
  end
end

R = Array.new(S.length).fill(0)

M = S.map.with_index do |s, i|
  j = i
  5.times do |_|
    if MEMO["10_#{j}"]
      j = MEMO["10_#{j}"]
    else
      j = dp(10, j)
      MEMO["10_#{j}"] = j
    end
  end
  R[j] += 1
end

puts R.join(" ")
