S = input()
r = S.count('0')
b = S.count('1')

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

print(min(r,b) * 2)