let input:[String] = readLine()!.map{String($0)} var counter:Int = 0 for c in input { if c == "0" { counter += 1 } } print(abs(counter-8))