
object Main extends App {
  
  val sc = new java.util.Scanner(System.in)
  val s = sc.next()
  val zero = s.filter(_ == '0').length
  val one = s.filter(_ == '1').length
  println(zero.min(one) * 2) 
}
