from collections import Counter
S = input()
C = Counter(S)
print(min(C['0'], C['1'])*2) from collections import Counter S = input() S input() input C = Counter(S) C Counter(S) Counter S print(min(C['0'], C['1'])*2) print min(C['0'], C['1'])*2 min(C['0'], C['1']) min C['0'] C '0' C['1'] C '1' 2 C = Counter(S) Counter(S) C S = input() input() S
from collections import Counter
S = input()
C = Counter(S)
print(min(C['0'], C['1'])*2)
