using System; using System.Collections.Generic; using System.Linq; public class Program { static void Main() { Console.ReadLine(); var Input = new List(Console.ReadLine().Split(' ')).GroupBy(e => e).Where(e => e.Count() == 1); Console.WriteLine(Input.Count()); } }