S = str(input())
x = S.count("0")
y = S.count("1")
print(2*min(x, y)) S = str(input()) S str(input()) str input() input x = S.count("0") x S.count("0") S.count S count "0" y = S.count("1") y S.count("1") S.count S count "1" print(2*min(x, y)) print 2*min(x, y) 2 min(x, y) min x y x = S.count("0") S.count("0") x S = str(input()) str(input()) S y = S.count("1") S.count("1") y
S = str(input())
x = S.count("0")
y = S.count("1")
print(2*min(x, y))
