n=io.read("*n")
a={}
for i=1,n do
    number=io.read("*n")
    if not a[number]  then
        a[number]=1
    else
        a[number]=0
    end
end

counter=0
for _,v in pairs(a) do
    counter=counter+v
end
print(counter)