l=[]
l=[int(i) for i in input().split()]
n=len(l)
count=0
for i in range(n):
    for j in range(i,n):
        if(i!=j and l[i]==l[j]):
            count+=1
print(count)            

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: