S = input()
cnt_0 = S.count('0')
cnt_1 = S.count('1')

print(min(cnt_0, cnt_1)*2) S = input() S input() input cnt_0 = S.count('0') cnt_0 S.count('0') S.count S count '0' cnt_1 = S.count('1') cnt_1 S.count('1') S.count S count '1' print(min(cnt_0, cnt_1)*2) print min(cnt_0, cnt_1)*2 min(cnt_0, cnt_1) min cnt_0 cnt_1 2 cnt_1 = S.count('1') S.count('1') cnt_1 S = input() input() S cnt_0 = S.count('0') S.count('0') cnt_0
S = input()
cnt_0 = S.count('0')
cnt_1 = S.count('1')

print(min(cnt_0, cnt_1)*2)
