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