#include <iostream>

using namespace std;

int main() {
    char ch;
    int c[2] = {0, 0};
    while (cin >> ch) {
        c[ch-'0']++;
    }

    cout << 2 * (c[0] < c[1] ? c[0] : c[1]) << endl;

    return 0;
}