using System; using System.Collections.Generic; using System.Linq; static class CaptiveOfNovelty { static void Main() { var N = Console.ReadLine(); var ans = Console.ReadLine() .Split(' ') .GroupBy(x => x) .Where(y => y.Count() == 1) .SelectMany(z => z) .Count(); Console.WriteLine(ans); } }