S=input()
a=S.count('0')
b=S.count('1')
print(min(a,b)*2) S=input() S input() input a=S.count('0') a S.count('0') S.count S count '0' b=S.count('1') b S.count('1') S.count S count '1' print(min(a,b)*2) print min(a,b)*2 min(a,b) min a b 2 b=S.count('1') S.count('1') b S=input() input() S a=S.count('0') S.count('0') a
S=input()
a=S.count('0')
b=S.count('1')
print(min(a,b)*2)
