S = gets.chomp
N = S.size
R, L = ?R.freeze, ?L.freeze

squares = Array.new(N, 0)

children = 0
N.times do |i|
  next(children += 1) if S[i] == R
  next if children == 0
  squares[i] += children / 2
  squares[i - 1] += (children + 1) / 2
  children = 0
end

children = 0
N.times.map {|n| N - n - 1}.each do |i|
  next(children += 1) if S[i] == L
  next if children == 0
  squares[i] += children / 2
  squares[i + 1] += (children + 1) / 2
  children = 0
end

puts squares.join(' ')
