static void Main() { int sum = 0; int ccc = 0; string a = Console.ReadLine(); for (int i = 0; i < a.Length ; i++) { sum = 0; bool boo = false; for (int q = 0; q < a.Length ; q++) {
if (a[i] == a[q]) { for (int k = 0; k <i; k++) { if (a[k] == a[i]) { boo = true; break; } } if (boo) { break; }