S = input()

N = len(S)
O = S.count('1')
Z = N - O

print(2*min(O,Z)) S = input() S input() input N = len(S) N len(S) len S O = S.count('1') O S.count('1') S.count S count '1' Z = N - O Z N - O N O print(2*min(O,Z)) print 2*min(O,Z) 2 min(O,Z) min O Z N = len(S) len(S) N O = S.count('1') S.count('1') O S = input() input() S Z = N - O N - O Z
S = input()

N = len(S)
O = S.count('1')
Z = N - O

print(2*min(O,Z))