S = gets.chomp

ans = Array.new(S.length, 0)
idou = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

RL_INDEX = Array.new
k = 0
until k.nil?
  k = S.index('RL', k)
  break if k.nil?
  RL_INDEX << k
  k += 1
end

def sl(index)
  RL_INDEX.reverse_each do |i|
    return i if index >= i
  end
end

def sr(index)
  RL_INDEX.each do |i|
    return i if index <= i
  end
end

S.split('').each_with_index do |item, index|
  if item == 'L'
    n_RL_index = sl(index)
    idou_kaisuu = index - n_RL_index
  elsif item == 'R'
    n_RL_index = sr(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(' ')
