s = gets.chomp.split("").map{|c|c=="R"}

ans = Array.new(s.size, 0)
prev = 0
ch = 1
(1...s.size).each{|i|
  if s[i]
    ch += 1
    prev = i
  else
    ans[i] += (ch)/2
    ans[i-1] += (ch+1)/2
    ch = 0
    bit = (prev-i)&1
    ans[prev+bit] += 1
  end
}

puts ans*" "
