S = gets.chomp.chars

# p S

S.each_with_index do |v, i|
  if v == 'R' && S[i + 1] == 'L'
    S[i] = 1
    S[i + 1] = 1
  end
end

# R の処理
S.each_with_index do |v, i|
  next unless v.to_s.match(/^R/)

  if S[i + 1] == 1
    l = S[i].length
    if l.even?
      S[i + 1] += l/2
      S[i + 2] += l/2
    else
      S[i + 1] += l/2
      S[i + 2] += (l/2 + 1)
    end
  elsif S[i + 1] == 'R'
    S[i + 1] += S[i]
  end
  S[i] = 0
end

# p S
# p S.reverse
RS = S.reverse
# L 側の処理
RS.each_with_index do |v, i|
  next unless v.to_s.match(/^L/)
  
  if RS[i + 1] != 'L'
    l = RS[i].length
    if l.even?
      RS[i + 1] += l/2
      RS[i + 2] += l/2
    else
      RS[i + 1] += l/2
      RS[i + 2] += (l/2 + 1)
    end
  elsif RS[i + 1] == 'L'
    RS[i + 1] += RS[i]
  end
  RS[i] = 0
end

# p RS
puts RS.reverse.join(' ')
