input = gets.chomp.split("")
last = input[0]
len = 1
arr = []
(input.length).times{|t|
if input[t+1] == last then
  len +=1
else
  arr.push(len)
  len = 1
  last = input[t+1]
end
}
t = 0
while t<arr.length do
(arr[t]-1).times{
  print "0 "
}
print (arr[t].to_f/2).ceil + arr[t+1]/2," "
print arr[t]/2 + (arr[t+1].to_f/2.0).ceil," "

(arr[t+1]-1).times{
  print "0 "
}
t +=2
end