def max(a,b) a>b ? a:b end

s=gets.chomp
slen=s.length

cnt = 1
rindex = 0
rcnt = 1
s+="R"
ary = Array.new(slen, 0)
slen.times do |i|
  if s[i] == s[i+1]
    cnt += 1
  else
    if s[i] == "R"
      rcnt = cnt
      cnt = 1
      rindex = i
    else
      sum = rcnt + cnt
      r, l = sum/2, sum/2

      max = max(rcnt, cnt)
      if sum % 2 != 0
        if rcnt > cnt
          r += 1
        else
          l += 1
        end
        if max % 2 == 0
          r, l = l, r
        end
      end
      ary[rindex] = r
      ary[rindex+1] = l
      
      cnt = 1
    end
  end
end

puts ary.join(" ")