using System; public class Program { public static void Main(string[] args) { Console.ReadLine(); // n string[] s = Console.ReadLine().Split(' '); int count = 0; for (int i = 0; i < s.Length; i++) { bool isSame = false; for (int j = 0; j < s.Length; j++) { if (i == j) { continue; } else if (s[i].Equals(s[j])) { isSame = true; break; } } if (!isSame) { count++; } } Console.WriteLine(count); } }