s = [int(i) for i in list(input())]

print(2 * min(s.count(1), s.count(0))) int(i) for i in list(input()) for i in list(input()) i list(input()) list input() input for i in list(input()) int(i) int i s = [int(i) for i in list(input())] s [int(i) for i in list(input())] print(2 * min(s.count(1), s.count(0))) print 2 * min(s.count(1), s.count(0)) 2 min(s.count(1), s.count(0)) min s.count(1) s.count s count 1 s.count(0) s.count s count 0 s = [int(i) for i in list(input())] [int(i) for i in list(input())] s
s = [int(i) for i in list(input())]

print(2 * min(s.count(1), s.count(0)))
