P,L,I=0,0,[0]*11 for _ in [0]*int(input()): for k in input().split():I[int(k)]+=1 for i in I:P+=i//2;L+=i%2 print(P+L//4)