#include <bits/stdc++.h>
using namespace std;
int main() {
  string N;
  cin >> N;
  int Z, O;
  for (auto c : N) {
    if (c == '0')
      Z++;
    else
      O++;
  }
  cout << min(Z, O) * 2 << endl;
}
