import sys

def parse(inp):
    S=list(map(int,list(next(inp))))
    return S

def main(inp):
    S = inp
    ones = sum(S)
    zeros = len(S) - ones
    return 2*min(ones,zeros)
  
print(main(parse(sys.stdin)))