fun main(args:Array<String>){
    val s = readLine()!!.toString()
    var zero=0
    var one=0
    for (i in s){
        if (i=='0') zero++
        else one++
    }
    println(Math.min(zero,one)*2)
}