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