using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ForYukicoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] S = Console.ReadLine().Split().Select(int.Parse).ToArray(); bool isOne; var cnt = 0; for (int i = 0; i < N; i++) { isOne = true; for (int j = 0; j < N; j++) { if (i == j) { continue; } else if (S[i] == S[j]) { isOne = false; break; } } if (isOne) cnt++; } Console.WriteLine(cnt); } } }