S = gets.chomp.split("")

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|
  R[dp(10**3, dp(10**2, i))] += 1
end

puts R.join(" ")
