N = int(input()) L = [0 for i in range(11)] for _ in range(N): I = map(int, input().split()) for i in I: L[i] += 1 x = [i//2 for i in L] y = [i%2 for i in L] print(sum(x) + sum(y)//4)