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 = 1
    val l = s.length

    while (true) {
      var break = 1
      s.zipWithIndex.foreach { v =>
        if (v._1 == 'R') {
          ans(v._2) = ans(v._2) - cur(v._2)
          ans(v._2 + 1) = ans(v._2 + 1)  + cur(v._2)
          if (v._2 > 0 && s(v._2 - 1) == 'R' && ans(v._2 - 1) != 0) break = -1

        // 'L'
        } else {
          ans(v._2) = ans(v._2)  - cur(v._2)
          ans(v._2 - 1) = ans(v._2 - 1)  + cur(v._2)
          if (v._2 < l - 1 && s(v._2 + 1) == 'L' &&  ans(v._2 + 1) != 0) break = -1
        }
      }
      cur = ans.clone

      if (break == 1) {
        if (cnt % 2 == 0) {
          return ans.mkString(" ")
        } else {
          s.zipWithIndex.foreach { i =>
            if (i._1 == 'R' && s(i._2 + 1) == 'L') {
              var tmp = ans(i._2)
              ans(i._2) = ans(i._2 + 1)
              ans(i._2 + 1 ) = tmp
            }
          }
          return ans.mkString(" ")
        }


        cnt = cnt + 1

      }
    }

    ""
  }

  println(solve(s))
}
  

