S=list(input())
A=S.count('1')
B=S.count('0')
print(min(2*A,2*B)) S=list(input()) S list(input()) list input() input A=S.count('1') A S.count('1') S.count S count '1' B=S.count('0') B S.count('0') S.count S count '0' print(min(2*A,2*B)) print min(2*A,2*B) min 2*A 2 A 2*B 2 B S=list(input()) list(input()) S A=S.count('1') S.count('1') A B=S.count('0') S.count('0') B
S=list(input())
A=S.count('1')
B=S.count('0')
print(min(2*A,2*B))