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

int main(){
  string s; cin >> s;
  int blue=0,red=0;
  for(int i=0;i<s.size();i++){
    if(s.at(i)=='0') red++;
    else blue++;
  }
  cout << 2*min(red,blue) << endl;
}