s = gets.chomp.split(//).map{|s| s.to_sym}
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|
  c = s[i]
  if (c == :R || c == :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 c == :R
    count += 1
  elsif c == :L
    count += 1
  elsif c == :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(' ')
