#input of int(split by space)
def get_i()
  return gets.chomp.split(" ").map(&:to_i)
end
#input of float(split by space)
def get_f()
  return gets.chomp.split(" ").map(&:to_f)
end
#input of string(split by space)
def get()
  return gets.chomp.split(" ")
end
#input of string(split per one character)
def get_nsp()
  return gets.chomp.split("")
end
#yes or no decision
def yn_judge(bool,y="Yes",n="No")
  return bool ? y : n 
end
#create of array
def array(size1,init=nil,size2=-1)
  if size2==-1
    return Array.new(size1){init}
  else
    return Array.new(size2){Array.new(size1){init}}
  end
end

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

def min(a,b)
    return a>b ? b : a
end

INF=Float::INFINITY

S=get_nsp
N=S.size
lr=[]
cnt=(S[0]=="R" ? 1 : -1)
(N-1).times do|i|
  if S[i]==S[i+1]
      if S[i]=="R"
          cnt+=1
      else
          cnt-=1
      end
  else
      lr.push(cnt)
      cnt=(S[i+1]=="R" ? 1 : -1) 
  end
end
lr.push(cnt)
ans=array(N,0)
i=0
lr.each do|v|
    if v>0
        i+=v
        ans[i]+=v/2
        ans[i-1]+=v/2+v%2
    else
        v*=-1
        ans[i]+=v/2+v%2
        ans[i-1]+=v/2
        i+=v
    end
end
puts ans.join(" ")