using System;
public class Program
{
public static void Main()
string word = "madam";
int count = 0;
for(int i=0; i<word.Length; i++)
count = 0;
if(word[i] != ' ')
for(int j=0; j<word.Length; j++)
if(word[i] == word[j])
count++;
}
Console.WriteLine(word[i] + "-" + count);
word = word.Replace(word[i], ' ');