using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var arr = Console.ReadLine().Split(' ') .Select(x => int.Parse(x)) .ToArray(); var map = new Dictionary(); for (int i = 0; i < N; i++) { if (map.ContainsKey(arr[i])) map[arr[i]]++; else map.Add(arr[i], 1); } int novelty = 0; foreach (var data in map) { if (data.Value == 1) novelty++; } Console.WriteLine(novelty); } }