You are playing the following game with Joisino.    * Initially, you have a blank sheet of paper.   * Joisino announces a number. If that number is written on the sheet, erase the number from the sheet; if not, write the number on the sheet. This process is repeated N times.   * Then, you are asked a question: How many numbers are written on the sheet now?  The numbers announced by Joisino are given as A_1, ... ,A_N in the order she announces them. How many numbers will be written on the sheet at the end of the game?
n=int(input())
a=[]
for i in range(n):
	a.append(int(input()))
a.sort()

now=a[0]
odd=0
ans=0
for i in range(n):
	if a[i]==now:
		odd=(odd+1)%2
	else:
		if odd==1:
			ans+=1
		if i+1<n:
			now=a[i+1]
			odd=0
print(ans+odd)
n=int(input())
a=sorted([int(input()) for i in range(n)])

now=a[0]
odd=False
ans=0
for i in range(n):
	
	if a[i]==now:
		odd=not odd
	
	else:
		
		ans+=odd
		
		now=a[i]
		odd=True

print(ans+odd)