s = gets.chomp

n = s.length
counts = Array.new(n, 1)

(n-2).times do |i|
  if s[i] == 'R' && s[i+1] == 'R'
    counts[i+2] += counts[i]
    counts[i] = 0
  end
end

(n-2).times do |i|
  if s[-1-i] == 'L' && s[-1-(i+1)] == 'L'
    counts[-1-(i+2)] += counts[-1-i]
    counts[-1-i] = 0
  end
end

puts(counts.join(' '))