import strutils,sequtils var N = stdin.readline c = N.count('0') echo abs(c - 8)