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

int main() {
  string s;
  cin >> s;
  int red = 0;
  for (char c : s) {
    if (c == '0') ++red;
  }
  int blue = s.length() - red;
  cout << 2 * min(red, blue) << endl;
}
