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 = 0
xpos = -1
right = true
size.times do |i|
  if (s[i] == 'R' || s[i] == 'X') && i != 0 && s[i-1] == 'L' # 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 s[i] == 'R'
    count += 1
  elsif s[i] == 'L'
    count += 1
  elsif s[i] == 'X'
    count += 2
    ans[i] += count/2
    ans[i+1] += ((1.0 * count)/2).ceil.to_i
    count = 0
    xpos = i
  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(' ')
