S = gets.chomp

ans = Array.new(S.length, 0)
idou = 10 ** 100

S.split('').each_with_index do |item, index|
  if item == 'L'
    n_RL_index = S.rindex('RL', index)
    idou_kaisuu = index - n_RL_index
  elsif item == 'R'
    n_RL_index = S.index('RL', index)
    idou_kaisuu = n_RL_index - index
  end
  if (idou - idou_kaisuu).odd?
    ans[n_RL_index + 1] += 1
  else
    ans[n_RL_index] += 1
  end
end

puts ans.join(' ')
