using System;
public class Program
{
public static void printChaFre(String s)
for (int i = 0; i < s.Length - 1; i++)
int count = 1;
while (s[i] == s[i + 1])
i++;
count++;
if(i + 1 ==s.Length)
break;
}
Console.Write(s[i] + "" + count + " ");
Console.WriteLine();
public static void Main(String[] args){
printChaFre("The quick brown fox jumps over the lazy dog");