import java.util.Scanner

fun main(args: Array<String>) {
  var counter0 = 0
  var counter1 = 0
  for (char in Scanner(System.`in`).next().toCharArray()) {
    if (char == '0') counter0++ else counter1++
  }
  print(Math.min(counter0, counter1) * 2)
}