fun main(args: Array<String>) {
  val cList = readLine()!!.toList()
  val n = cList.size
  val rMap = mutableMapOf<Int, Int>()
  val lMap = mutableMapOf<Int, Int>()
  for (i in 1 until n) {
    val c = cList[i]
    if (c == 'L') {
      val lNum = lMap[i - 1]
      if (lNum == null) {
        lMap[i] = 1
      } else {
        lMap[i] = lNum + 1
      }
    }
  }
  for (i in n - 2 downTo 0) {
    val c = cList[i]
    if (c == 'R') {
      val rNum = rMap[i + 1]
      if (rNum == null) {
        rMap[i] = 1
      } else {
        rMap[i] = rNum + 1
      }
    }
  }
  val ansList = (1..n).map { 0 }.toMutableList()
  for (i in 0 until n) {
    val c = cList[i]
    if (c == 'R') {
      val r = rMap[i]!!
      if (r % 2 == 0) {
        ansList[i + r]++
      } else {
        ansList[i + r - 1]++
      }
    } else {
      val l = lMap[i]!!
      if (l % 2 == 0) {
        ansList[i - l]++
      } else {
        ansList[i - l + 1]++
      }
    }
  }
  println(ansList.joinToString(separator = " "))
}

