#include <iostream>
#include <string>

using namespace std;

string S;
int cnt[2];

int main()
{
	cin >> S;
	for (int i=0; i<S.length(); i++) cnt[S[i]-'0']++;
	cout << min(cnt[0],cnt[1])*2;
	return 0;
}