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