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?
    res += Array.new(index-1, 0) + [r] + [l] + Array.new(n-index-1, 0)
    tmp = []
  else
    tmp << s.shift
  end
end

print(res.join(' '))