l=[0]*11 n=int(input()) for i in range(n): *a,=map(int,input().split()) for j in a: l[j]+=1 print(sum([t//2 for t in l])+sum([t%2 for t in l])//4)