b=input()
A=b.count("1")
B=b.count("0")
print(min(2*A,2*B)) b=input() b input() input A=b.count("1") A b.count("1") b.count b count "1" B=b.count("0") B b.count("0") b.count b count "0" print(min(2*A,2*B)) print min(2*A,2*B) min 2*A 2 A 2*B 2 B b=input() input() b A=b.count("1") b.count("1") A B=b.count("0") b.count("0") B
b=input()
A=b.count("1")
B=b.count("0")
print(min(2*A,2*B))