S = '1000000007' N = gets.chomp puts (S.count('0') - N.count('0')).abs