#E A, B, C = gets.chomp.split.map(&:to_i)
S = gets.chomp.chars

# Detect `LR` address.
# Wa want to treat RR..RLL..L pairs

r = []
1.upto(S.size - 1).each do |i|
  if (S[i-1] == 'L') && (S[i] == 'R')
    r << i
  end
end

chunks = []
prevI = 0
r.each do |i|
  chunks << S[prevI..(i-1)]
  prevI = i
end
chunks << S[prevI..-1]

r = []
chunks.each do |chunk|
  firstL = -1
  chunk.each.with_index do |char, i|
    if char == 'L'
      firstL = i
      break
    end
  end
  
  odd = chunk.size / 2  # 1, 3, ..
  even = chunk.size - odd  # 0, 2, ..
  
  a = Array.new(chunk.size, 0)
  if (firstL % 2) == 0
    a[firstL] = even
    if firstL >=1
      a[firstL-1] = odd
    end
  else
    a[firstL] = odd
    if firstL >=1
      a[firstL-1] = even
    end
  end
  r += a
end

print r.join(" ")