S = input()
c0 = S.count('0')
c1 = S.count('1')
print(min(c0,c1)*2) S = input() S input() input c0 = S.count('0') c0 S.count('0') S.count S count '0' c1 = S.count('1') c1 S.count('1') S.count S count '1' print(min(c0,c1)*2) print min(c0,c1)*2 min(c0,c1) min c0 c1 2 S = input() input() S c0 = S.count('0') S.count('0') c0 c1 = S.count('1') S.count('1') c1
S = input()
c0 = S.count('0')
c1 = S.count('1')
print(min(c0,c1)*2)