import scala.io.StdIn._

object Main extends App {

  val s = readLine()

  def solve() = {
    val c0 = s.count(_ == '0')
    val c1 = s.length - c0
    Math.min(c0, c1) * 2
  }
  println(solve())

}

