s = gets.chomp.split('')

res = ''
tmp = []
s.size.times do |i|
  if s[0]=='L' && s[1]=='R' || s[1].nil?
    tmp << s.shift
    index = tmp.find_index{|i| i =='L'}
    n = tmp.size
    r = l = n / 2
    l += 1 if n.odd? && index.even?
    r += 1 if n.odd? && index.odd?
    l_0 = ''
    r_0 = ''
    (index-1).times do
      l_0.concat('0 ')
    end
    (n-index-1).times do
      r_0.concat('0 ')
    end
    res.concat(l_0 + r.to_s + ' ' + l.to_s + ' ' + r_0)
    tmp = []
  else
    tmp << s.shift
    next
  end
end

print(res)