object Main {
  def main(args:Array[String]) {
    val S = readLine()
    var ansarr = Array.fill(S.length)(1)

    for(i <- 0 until S.length) {
      if(S(i) == 'R') {
        if(S(i + 1) == 'R') {
          ansarr(i + 2) += ansarr(i)
          ansarr(i) = 0
        }
      }
    }
    for(i <- S.length - 1 to 0 by -1) {
      if(S(i) == 'L') {
        if(S(i - 1) == 'L') {
          ansarr(i - 2) += ansarr(i)
          ansarr(i) = 0
        }
      }
    }
    ansarr.map(a => print(a + " "))
  }
}