using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' ') .Select(x => int.Parse(x)) .ToList(); var search = 0; for (int i = 0; i < input.Count(); i++) { search = input[i]; for (int j=i+1; j x == search) >= 2) { input.RemoveAll(x => x == search); break; } } } var novelty = input.Count(); Console.WriteLine(novelty); } }