print(abs(8-input().count("0")))