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