cor = "1000000007".count("0") n = input() print(abs(cor - n.count('0')))