s = gets.chomp
ans = Array.new(s.size, 0)
idx = 0
s.scan(/R+L+/).each do |x|
  num_r = x.count('R')
  num_l = x.count('L')
  r = 1
  l = 1
  (num_r-1).times do |i|
    if i.even?
      l += 1
    else
      r += 1
    end
  end
  (num_l-1).times do |i|
    if i.even?
      r += 1
    else
      l += 1
    end
  end
  ans[idx + num_r - 1] = r
  ans[idx + num_r] = l
  idx += x.size
end
puts ans.join(' ')