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

int main() {
  int b=0, r=0;
  string s;
  cin >> s;
  for(char c:s) {
     if(c=='0') r++;
     else b++;
  }
  cout << min(b,r) * 2 << endl;
  return 0;
}