S = input()
l0 = S.count("0")
l1 = len(S) - l0

print(2 * min([l0, l1])) S = input() S input() input l0 = S.count("0") l0 S.count("0") S.count S count "0" l1 = len(S) - l0 l1 len(S) - l0 len(S) len S l0 print(2 * min([l0, l1])) print 2 * min([l0, l1]) 2 min([l0, l1]) min [l0, l1] l0 l1 l1 = len(S) - l0 len(S) - l0 l1 S = input() input() S l0 = S.count("0") S.count("0") l0
S = input()
l0 = S.count("0")
l1 = len(S) - l0

print(2 * min([l0, l1]))