using System; using System.Diagnostics; namespace temp { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string str = Console.ReadLine(); //string[] list = str.Split(' '); //int[] num = new int[list.Length]; //int Newcnt = int.Parse(input); //for (int i = 0; i < num.Length; i++) //{ // num[i] = int.Parse(list[i]); //} //Array.Sort(num); while (true) { bool finish = true; for (int i = 0; i < str.Length; i++) { for (int j = (i + 1); j < str.Length; j++) { if (str.Substring(i, 1).Equals(str.Substring(j, 1))) { if(!str.Substring(i, 1).Equals(" ")) { str = str.Replace(str.Substring(i, 1), ""); finish = false; break; } } } if (!finish) break; } if (finish) break; } string[] list = str.Split(' '); int cnt = 0; for(int i = 0; i < list.Length; i++) { if(list[i] != "") { cnt++; } } Console.WriteLine(cnt); } } }