#new N=int(input()) A=[int(i)for i in input().split()] A.sort() C=0 if A[0]!=A[1]: C+=1 for i in range(1,N-2): if A[i]!=A[i-1] and A[i]!=A[i+1]: C+=1 # print (A[i-1]) # print (A[i]) if A[N-2]!=A[N-1]: C+=1 print(C)