s = gets.chomp.chars
r = s.reverse

a = 0
b = 0
ltr = []

for i in 0..(s.size-2)
  if s[i] == 'R'
    a += 1
    if s[i+1] == 'L'
      ltr[i] = a
      ltr[i+1] = b
      a, b = 0, 0
    end
  end
  a, b = b, a
end

a = 0
b = 0
rtl = []

for i in 0..(r.size-2)
  if r[i] == 'L'
    a += 1
    if r[i+1] == 'R'
      rtl[i] = a
      rtl[i+1] = b
      a, b = 0, 0
    end
  end
  a, b = b, a
end

ltr[s.size-1] = 0
rtl[r.size-1] = 0

ans = ltr.zip(rtl.reverse).map {|x, y| (x || 0) + (y || 0) }

puts ans.join(' ')
