S = gets.chomp

result = Array.new(S.length - 1) { 0 }

e = 0
o = 0
last = nil
rt = nil
0.upto(S.size - 1) do |i|
  if last == 'L' && S[i] == 'R'
    if rt.even?
      result[rt] = e
      result[rt + 1] = o
    else
      result[rt] = o
      result[rt + 1] = e
    end

    rt = nil
    e = 0
    o = 0
  elsif last == 'R' && S[i] == 'L'
    rt = i - 1
  end

  last = S[i]

  if i.even?
    e += 1
  else
    o += 1
  end
end

puts result.join(' ')
