s = gets.chomp
size = s.size

(size-1).times do |i|
  if s[i] == 'R' && s[i+1] == 'L'
    s[i] = 'X'
    s[i+1] = 'Y'
  end
end

ans = Array.new(size, 0)
count = 1
xpos = -1
left = true
1.upto(size-1).each do |i|
  c = s[i]
  if left && (c == 'R' || c == 'X') # L->R/X
    if xpos >= 0
      ans[xpos] += ((1.0 * count)/2).ceil.to_i
      ans[xpos+1] += count/2
      xpos = -1
      count = 0
    end
  end
  if c == 'R'
    count += 1
    left = false
  elsif c == 'L'
    count += 1
    left = true
  elsif c == 'X'
    count += 2
    ans[i] += count/2
    ans[i+1] += ((1.0 * count)/2).ceil.to_i
    count = 0
    xpos = i
    left = false
  end
end

if xpos >= 0
  ans[xpos] += ((1.0 * count)/2).ceil.to_i
  ans[xpos+1] += count/2
  xpos = -1
  count = 0
end


# puts s.split(//).join(' ')
puts ans.join(' ')
