a = list(input())

n = a.count("0")
m = a.count("1")

print(min(n, m) * 2) a = list(input()) a list(input()) list input() input n = a.count("0") n a.count("0") a.count a count "0" m = a.count("1") m a.count("1") a.count a count "1" print(min(n, m) * 2) print min(n, m) * 2 min(n, m) min n m 2 a = list(input()) list(input()) a n = a.count("0") a.count("0") n m = a.count("1") a.count("1") m
a = list(input())

n = a.count("0")
m = a.count("1")

print(min(n, m) * 2)