#include <bits/stdc++.h>
using namespace std;

int main(){
  string S;
  cin >> S;
  int maru=0, batsu=0;
  for (auto k: S){
    if (k=='0') maru++;
    else batsu++;
  }
  cout << min(maru, batsu)*2 << endl;
}
