S = gets.chomp

def rl(s)
  ret = [0] * s.length
  r, l = s.count('R') - 1, s.count('L') - 1
  ret[r] = r/2 + 1 + l/2 + (l.odd? ? 1 : 0)
  ret[r + 1] = r / 2 + 1 + l / 2 + (r.odd? ? 1 : 0)
  ret
end

puts S.scan(/R+L+/).inject([]){|s, p| s + rl(p)}.join(' ')