using System; using System.Collections.Generic; using System.Linq; using System.Text; class yc2 { static void Main() { int N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(); List lst = new List(); for (int i = 0; i < str.Length; i++) { lst.Add(str[i]); } int cout = 0, lstcout; while(lst.Count != 0) { lstcout = lst.Count; lst.RemoveAll(t => t == lst[0]); if (lstcout - lst.Count == 1) cout++; } Console.WriteLine(cout); } }