s=[int(x) for x in list(input())]
x=s.count(0)
print(min(x,len(s)-x)*2) int(x) for x in list(input()) for x in list(input()) x list(input()) list input() input for x in list(input()) int(x) int x s=[int(x) for x in list(input())] s [int(x) for x in list(input())] x=s.count(0) x s.count(0) s.count s count 0 print(min(x,len(s)-x)*2) print min(x,len(s)-x)*2 min(x,len(s)-x) min x len(s)-x len(s) len s x 2 s=[int(x) for x in list(input())] [int(x) for x in list(input())] s x=s.count(0) s.count(0) x
s=[int(x) for x in list(input())]
x=s.count(0)
print(min(x,len(s)-x)*2)