object Main {

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val S = sc.next
    val red = S.count(_.==('0'))
    val blue = S.length - red
    val result = Math.min(red, blue) * 2
    println(result)
  }
}
