lst = list(map(int,input().split()))
print(len(lst)-sum(lst))