object Main extends App {
  val input: Seq[Boolean] = io.StdIn.readLine().toVector.map(_ == 'L')
  val length = input.length
  val reversed = input.reverse
  val finalPosMap: Map[Int, Int] = input.zipWithIndex.map { case (toLeft, index) =>
    val returnIndex = if (toLeft) {
      input.lastIndexOf(false, end = index)
    } else {
      input.indexOf(true, from = index)
    }
    val destination = math.abs(returnIndex - index)
    val finalPos = {
      val mod = destination % 2
      if (toLeft) returnIndex + mod else returnIndex - mod
    }
    finalPos
  }.groupBy(i => i).mapValues(_.length)

  val result = (0 until length).map(i => finalPosMap.getOrElse(i, 0)).mkString(" ")
  println(result)
}