int = gets num_of_zero = int.count('0') answer = num_of_zero - 8 print answer