S = gets.chomp

@f= {}

def f(r, l)
  @f[[r, l]] ||= (
    ret = [0] * (r + l + 2)
    ret[r] = r/2 + 1 + (l + 1)/2
    ret[r + 1] = (r + 1)/2 + 1 + l/2
    ret
  )
end

puts S.split('').chunk(&:itself).map{|_, a| a.size - 1}.each_slice(2).inject([]){|s, (r, l)| s + f(r, l)}.join(' ')