S = input()
K = S.count("0")
L = S.count("1")
print(min(K,L)*2) S = input() S input() input K = S.count("0") K S.count("0") S.count S count "0" L = S.count("1") L S.count("1") S.count S count "1" print(min(K,L)*2) print min(K,L)*2 min(K,L) min K L 2 S = input() input() S L = S.count("1") S.count("1") L K = S.count("0") S.count("0") K
S = input()
K = S.count("0")
L = S.count("1")
print(min(K,L)*2)