# x = list(map(int,input().split(" ")))
# print(x.count(0)) # 整数零

seq = input().split(' ')
print(seq.count('0')) # 字符串零