import scala.io.StdIn

object Main {
  
  def main(args: Array[String]): Unit = {
    val s: Vector[Either[Int]] = StdIn.readLine().toVector.map{ c =>
      if (c == 'L') Left(1) else Right(1)
    }
	val rFolded = (2 until s.size).foldLeft(s){ (acc, i) =>
   	  (acc(i - 2), acc(i - 1)) match {
        case (Right(x), Right(_)) =>  
          acc.updated(i - 2, 0).updated(i, x + 1)
        case _ => acc
      }
    }
    val lrFolded = (0 until s.size - 2).reverse.foldLeft(rFolded){ (acc, i) =>
      (acc(i + 1), acc(i + 2)) match {
        case (Left(_), Left(x)) =>
          acc.updated(i + 2, 0).updated(i, x + 1)
        case _ => acc
      }
    }
	println(lrFolded.fold(identity, identity).mkString(" "))
  }
  
}