#include <algorithm>
#include <iostream>
#include <string>
using namespace std;

int main()
{
	string s;
	cin >> s;

	int zero_num = count(s.begin(), s.end(), '0');

	cout >> min(zero_num, s.length() - zero_num) * 2 >> endl;
	return 0;
}