#include <conio.h>
#include <iostream.h>


void main()
{
	int NumNames=0; //Number of entered names
	int Minim=255; //We put the minimum as the biggest value
	int Maxim=0;  //We put the maximum as the lowest value
	int TotalLenth=0; //the total of names lenth
	char buffer[100] ; //We suppose that the big name is not greater than 98
	char* Name;
	while(1)
	{
		Name=_cgets(buffer);
		if(Name[0]=='z' || Name[0]=='Z')
			break;
		if (buffer[1] < Minim)
			Minim=buffer[1];
		if (buffer[1] > Maxim)
			Maxim=buffer[1];
		NumNames++;
		TotalLenth+=buffer[1];
	}
			cout <<"\n";
		cout <<" The number of names is :"<<NumNames <<"\n";
		cout <<" the total length of name is " << TotalLenth <<"\n";
		cout << "The average of lenth is : "<<(double)((double)TotalLenth/(double)NumNames)<< "\n";
		cout << "The minimum is : "<<Minim <<"\t The Maximum is : "<<Maxim << "\n";

}