s = gets.chomp
N = s.size
ans = Array.new(N, 0)
["R","L"].each{ |f|
  x = 0
  (0...N).each{ |i|
    if s[i] == f
      x += 1
    else
      ans[i-1] += (x+1)/2      
      ans[i] += x/2
      x = 0
    end
  }
  s.reverse!
  ans.reverse!
}
puts ans * " "
