1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
def main():
    num_count = int(input())
    nums = [int(x) for x in input().split()]
    A = num_count*[0]
    count = 0
    for num in nums:
        A[num] += 1
    for num in A:
        count += num // 2
    print(count)

if __name__ == "__main__":
    main()