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; bool tof = true; 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; i++) { for(int j = 0; j < N; j++) { if(i != j) { if(A[i] == A[j]) { tof = false; break; } } } if(tof == true) { count++; } tof = true; } Console.WriteLine(count); } } }