using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Magatro { static void Main() { int ans = 0; int N = int.Parse(Console.ReadLine()); string[] q = Console.ReadLine().Split(' '); HashSet H = new HashSet(); List L = new List(); for(int i = 0; i < N; i++) { if (H.Add(q[i])) { L.Add(q[i]); } else { L.Remove(q[i]); } } Console.WriteLine(L.Count); } }