import scala.io.StdIn

object Main extends App {
  val s  = StdIn.readLine()

  def solve(s: String): String = {
    var ans: Array[Int] = Array.fill(s.length)(1)
    var cur: Array[Int] = Array.fill(s.length)(1)    
    var cnt = 0
    val l = s.length

    s.zipWithIndex.foreach { v =>
      cnt = cnt + 1
      if (v._1 == 'R') {
        ans(v._2) = 0
        // 'L'
      } else {
        ans(v._2 - 1) = ans(v._2 - 1) + (cnt.toDouble / 2).floor.toInt
        ans(v._2) = (cnt.toDouble / 2).ceil.toInt
        cnt = 0
      }
    }
    var ans2: Array[Int] = ans.reverse
    cnt = 0
    s.reverse.zipWithIndex.foreach { v =>

      cnt = cnt + ans2(v._2)
      if (v._1 == 'L') {
        ans2(v._2) = 0
        // 'L'
      } else {
        ans2(v._2 - 1) = ans2(v._2 - 1) +  (cnt.toDouble / 2).floor.toInt
        ans2(v._2) =  (cnt.toDouble / 2).ceil.toInt
        cnt = 0
      }
    }
    ans2.reverse.mkString(" ")
  }
  
  println(solve(s))  
}
  

