#include <iostream>
#include <string>
using namespace std;
int main(void){
    string s;
    int w=0,b=0,k=0;
    cin>>s;
    for(auto x:s){
        if(x-48)w++;else b++;
    }
    k=b>w?w:b;
    cout<<k*2<<endl;
}