S=input()
List = list(S)
zeroNum = List.count("0")
oneNum = List.count("1")
res = min(zeroNum,oneNum)
print(res*2) S=input() S input() input List = list(S) List list(S) list S zeroNum = List.count("0") zeroNum List.count("0") List.count List count "0" oneNum = List.count("1") oneNum List.count("1") List.count List count "1" res = min(zeroNum,oneNum) res min(zeroNum,oneNum) min zeroNum oneNum print(res*2) print res*2 res 2 S=input() input() S List = list(S) list(S) List res = min(zeroNum,oneNum) min(zeroNum,oneNum) res zeroNum = List.count("0") List.count("0") zeroNum oneNum = List.count("1") List.count("1") oneNum
S=input()
List = list(S)
zeroNum = List.count("0")
oneNum = List.count("1")
res = min(zeroNum,oneNum)
print(res*2)