using System; using System.Collections.Generic; using System.Linq; class Program { public void Solve() { int N = int.Parse(Console.ReadLine()); string[] A = Console.ReadLine().Split(' '); List aList = new List(); aList.AddRange(A); aList.Sort(); HashSet hs = new HashSet(); string chk = ""; for (int i = 0; i < N; i++) { if (chk != aList[i]) { chk = aList[i]; hs.Add(aList[i]); } else { hs.Remove(aList[i]); } } Console.WriteLine(hs.Count()); } static void Main() { var solver = new Program(); solver.Solve(); } }