S = gets.chomp
N = S.size
R = Array.new(N, 0)

(0 ... N).inject(-1) do |r, i|
  if S[i] == 'L'
    R[(r - i).odd? ? r + 1: r] += 1
    r
  else
    i
  end
end
(0 ... N).reverse_each.inject(N) do |l, i|
  if S[i] == 'R'
    R[(l - i).odd? ? l - 1 : l] += 1
    l
  else
    i
  end
end
puts R.join(' ')
