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; bool tof = true; long[] A = new long[N]; var input = Console.ReadLine().Split(' '); for(long i = 0; i < N; i++) { A[i] = long.Parse(input[i]); } count = N; for(long i = 0; i < N - 1; i++) { for(long j = i + 1; j < N; j++) { if(A[i] != 0) { if(A[i] == A[j]) { A[j] = 0; tof = false; count--; } } } if(tof == false) { A[i] = 0; count--; } tof = true; } Console.WriteLine(count); } } }