using System; using System.Text; using System.Linq; namespace ConsoleApp11 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count = 0; int[] A = new int[N]; var input = Console.ReadLine().Split(' '); for(int i = 0; i < N; i++) { A[i] = int.Parse(input[i]); } for(int i = 0; i < N - 1; i++) { for(int j = i + 1; j < N; j++) { if(A[i] == A[j]) { A[i] = 0; A[j] = 0; } } } for(int i = 0; i < N; i++) { if(A[i] != 0) { count++; } } Console.WriteLine(count); } } }