R = 'R'
L = 'L'

arr = gets.chomp

cross_indexes = []
humans = Array.new(arr.length, 0)
(arr.length-1).times do |i|
  if arr[i] == R && arr[i+1] == L
    cross_indexes.push(i)
  end
end
cross_indexes_for_left = cross_indexes.reverse

(arr.length).times do |i|
  if arr[i] == R
    target_index = cross_indexes.bsearch { |j| j >= i }
    if (target_index - i) % 2 == 0
      humans[target_index] += 1
    else
      humans[target_index + 1] += 1
    end
  else
    target_index = cross_indexes_for_left.bsearch { |j| j <= i }
    if (i - target_index) % 2 == 0
      humans[target_index] += 1
    else
      humans[target_index + 1] += 1
    end
  end
end

str = humans[0].to_s
(1..(humans.count - 1)).each do |i|
  str += ' ' + humans[i].to_s
end
puts str