int main(){
	char word[42];
	int chars_left,word_length,i,j,word_num;

	scanf("%d",&word_num);
//???word????
	scanf("%s",&word);
	printf("%s",word);
	word_num--;
	word_length=strlen(word);
	chars_left=80-word_length;

//????word??
	while(word_num--){
		scanf("%s",&word);
		word_length=strlen(word);
		if(chars_left<word_length+1){
			printf("\n%s",word);
			chars_left=80-word_length;
		}
		/*else if(chars_left==word_length+1){
			printf(" %s\n",word);
			chars_left=80;
		}*/
		else{
			printf(" %s",word);
			chars_left-=word_length+1;
		}
	}
	return 1;
}


int main()
{
    char a[40], *p;
    int n, s = 0, len = -1, flag = 0;
    p = a;
    cin >> n;
    while (s < n)
    {
          s++;
          cin >> a;
          len = len + 1 + strlen(a);
          if (len <= 80)
          {
               if (flag == 0)
               {
                    cout << a;
                    flag = 1;
               }
               else
               {
                   cout << ' ' << a;
               }
          }
          if (len > 80)
          {
               cout << endl;
			   cout << a;
               len = strlen(a);
          }
    }
	return 0;
}


int main()
{
	char a[41];
	int num,count=0,sum=0;
	cin>>num;
	while(count<num)
	{
		count++;
		cin>>a;
		int l=strlen(a);
		if(sum==0)
		{
			cout<<a;
			sum+=l;
		}
		else if(sum+l+1>80)
		{
			cout<<endl;
			cout<<a;
			sum=l;
		}
		else if(sum>0&&sum+l<80)
		{
			cout<<" "<<a;
			sum+=(l+1);
		}
	}
	return 0;
}


int main()
{
	int n;
	scanf("%d\n",&n);
	char art[8000];
	gets(art);
	int len;
	len=strlen(art);
	int i,j=0,k=0;
	char wor[200][40];
	for(i=0;i<len;i++){
		if(art[i]!=' '){
			wor[j][k]=art[i];
			k++;
		}else{
			wor[j][k]='\0';
			k=0;
			j++;
		}
	}
	wor[j][k]='\0';
	int sum=0;
	int a;
	int be=0,ed;
	for(i=0;i<n;i++){
		a=strlen(wor[i]);
		sum+=a+1;
		if(sum<=81){
			ed=i;
		}else{
			for(j=be;j<ed;j++){
				printf("%s ",wor[j]);
			}
			printf("%s\n",wor[ed]);
			be=i;
			sum=a+1;
		}
	}
	for(i=be;i<n-1;i++){
		printf("%s ",wor[i]);
	}
	printf("%s",wor[n-1]);
	return 0;
}


int main(){
	char S1[41],S2[41];
	char *s1=NULL,*s2=NULL;
	int N,sum=0;
	cin>>N;
	cin>>S1;s1=S1;
	N=N-1;
	while(N>0){
		cin>>S2;
		s2=S2;
		int l1=strlen(S1),l2=strlen(S2);
		sum=sum+l1+1+l2;
		if(sum<=80){
			for(int i=0;i<l1;i++)
				cout<<*(s1+i);
			cout<<' ';
			sum=sum-l2;
			l1=l2;
			strcpy(S1,S2);
		}
		else {
			for(int i=0;i<l1;i++)
				cout<<*(s1+i);
			cout<<endl;
			sum=0;
			l1=l2;
			strcpy(S1,S2);
		}
		if(N==1)
			for(int i=0;i<l2;i++)
				cout<<*(s2+i);
		N--;
	}
	return 0;
}


int main()
{
	char a[50];
	int jishu,n,len=0,k=0;

	cin>>n;

	while(n>0)
	{
		if(k>0)
		{
			jishu=k+1;
		}
		else
		{
			jishu=0;
		}
		k=0;
		cin>>a;

		n--;
		len=strlen(a);
		jishu=jishu+len;
		cout<<a;

		while(jishu<=80)
		{

		   cin>>a;
		   n--;

		   len=strlen(a);
			jishu=jishu+len;

			 if(jishu+1<=80)
			  {
				   cout<<" "<<a;
				   jishu++;
				   if(n==0)
				   {
					   break;
				   }

			  }
			   else
			   {   k=len;
				   cout<<endl<<a;
				   cout<<" ";
				   break;
			   }
		   }
	}

	return 0;
}


int main()
{
	int n,i,p,q;
	char word[500][40],str[80]={"\0"};
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%s",word[i]);
	}
	for(i=0;i<n;i++)
	{
		strcat(str,word[i]);
		p=strlen(str);q=p+strlen(word[i+1])+1;
		if(p<=80&&q>80)
		{
			printf("%s\n",str);strcpy(str,"\0");
		}
		else
			if(i==n-1){printf("%s",str);}
			else strcat(str," ");
	}
}


int main(int argc, char* argv[])
{
	struct word{
		int num;
		char words[46];
	}word[1000];
	int n;
	scanf("%d",&n);
	int i,j,m;
	for(i=0;i<n;i++)
	{
		scanf("%s",&word[i].words);
		for(j=0;word[i].words[j]!='\0';j++){}
		word[i].num=j;
	}
	j=0;
	m=0;

	int max=80;
	int length=word[0].num+1;
         printf("%s",word[0].words);
	for(i=1;i<n;i++)
	{

		if(word[i].num<=max-length)
		{
			printf(" %s",word[i].words);
			length=length+word[i].num+1;
		}
		else if(word[i].num>max-length)
		{
			printf("\n%s",word[i].words);
			length=word[i].num+1;
		}
	}
	return 0;
}


int main()
{
	char word[300][40];
	int n, i, a[300] = {0}, flag = 0;

	cin >> n;

	for (i = 0; i < n; i++)
	{
		scanf("%s", word[i]);
	}

	int begin = 0, j = 0;
	int s = strlen(word[0]);

	for (i = 1; i < n; i++)
	{
		s += strlen(word[i]) + 1;
		if (s > 80)
		{
			for (j = begin; j < i; j++)
			{
				if (flag == 0)
				{
					cout << word[j];
					a[j] = 1;
					flag = 1;
				}
				else
				{
					cout << " " << word[j];
					a[j] = 1;
				}
			}
			cout << endl;
			flag = 0;
			begin = i;
			s = strlen(word[i]);
		}
	}

	flag = 0;
	for (i = 0; i < n; i++)
	{
		if (a[i] == 0)
		{
			for (j = i; j < n; j++)
			{
				if (flag == 0)
				{
					cout << word[j];
					flag = 1;
				}
				else
				{
					cout << " " << word[j];
				}
			}
			break;
		}
	}

	return 0;
}


/*
 * qm2.cpp
 *
 *  Created on: 2011-1-9
 *      Author: jsgl
 */
int main(){
	int n;
	cin>>n;
	char word[n][100];
	int i;
	for(i=0;i<n;i++){
		cin>>*(word+i);
	}
	int k,l=0;
	k=0;
	for(i=0;i<n;i++){
		k+=strlen(*(word+i))+1;
		if(k+strlen(*(word+i+1))>80){
			l++;
			cout<<*(word+i)<<endl;
			k=0;
		}
		else if(l==n-1)  cout<<*(word+i);
		else{
		cout<<*(word+i)<<" ";l++;}
	}
	return 0;
}


int main()
{
	int n;
	cin>>n;
	char word[200];
	cin.get();
	int sum;
	cin.getline(word,200,' ');
	cout<<word;
	sum=strlen(word)+1;
	for(int i=1;i<n;i++)
	{
		cin.getline(word,200,' ');
		if(sum+strlen(word)>80)
		{
			cout<<endl<<word;
			sum=0;
		}
		else
		{
			cout<<' '<<word;
		}
		sum+=strlen(word)+1;
	}
	return 0;
}


int WordLen(char *a)
{
    int i;
    for (i=0;a[i];i++);
    return i;
}
main()
{
    int i,num,space=80;
    char word[41];
    cin>>num;
    for (i=0;i<num;i++)
    {
        cin>>word;
        if (space==80)
        {
            cout<<word;
            space-=WordLen(word);
        }
        else if (space>=WordLen(word)+1)
        {
            cout<<' '<<word;
            space-=WordLen(word)+1;
        }
        else
        {
            cout<<endl<<word;
            space=80-WordLen(word);
        }
    }

}


int main()
{
	char a[1000][40];
	int i, n, len[1000], max;
	cin >> n;
	for (i = 0; i < n; i++)
	{
		cin >> a[i];
		len[i] = strlen(a[i]);
	}
	max = 81;
	for (i = 0; i < n; i++)
	{
		max += len[i] + 1;
		if (max > 80)
		{
			cout << endl;
			max = len[i];
			cout << a[i];
		}
		else
			cout << " " << a[i];
	}
	cout << endl;
	return 0;
}


int main()
{
	int n,i,len=0,m;
	char w[41];
	scanf("%d",&n);
	scanf("%s",w);
	m=strlen(w);
	len=m;
         printf("%s",w);
	for(i=1;i<n;i++){
		scanf("%s",w);
		m=strlen(w);
		len+=m+1;
		if(len>80){
			printf("\n%s",w);
			len=m;
		}
		else{
			printf(" %s",w);
		}
		}
	return 0;
}


int main()
{
    int number;
    cin >> number;
    char article[40];
    int i = 0,k = 0;
    cin >> article;
    i = strlen(article);
    cout << article;
    while(k < number-1)
    {
         cin >> article;
         char *p = article;
         i = i + strlen(article) + 1;
         if(i <= 80)
         {
              //cout << " " << article;
              cout << " ";
              for(;*p != '\0'; p++) cout << *p;
         }
         else
         {
              cout << endl << article;
              i = strlen(article);
         }
         ++k;
    }
    return 0;
}


int main()
{
	char word[1000][20];
	int n,i,j,sum=0;
	cin>>n;
	for(i=0;i<n;i++)
		cin>>word[i];
	char(*p)[20]=word;
	for(i=0;i<n;i++)
	{
		sum=sum+strlen(*(p+i));
		if(sum<=80)
		{
			cout<<*(p+i);
			if((sum+strlen(*(p+i+1))+1)<=80 && i!=n-1)
			{
				sum++;
				cout<<' ';
			}
			else
			{
				cout<<endl;
				sum=0;
			}

		}
		else
		{
			cout<<endl;
			cout<<*(p+i);
			sum=strlen(*(p+i));
		}

	}
	return 0;
}


char in[1000][50]={0};
char out[1000][4000]={0};

int main ()
{
	int n;
	cin>>n;
	for (int i=1;i<=n;i++)
		cin>>*(in+i);
	int row = 0;
	for (int i=1;i<n;i++){
		if (strlen(*(out+row))+strlen(*(in+i)) <= 80){
			strcat(*(out+row),*(in+i));
			if (strlen(*(out+row))+strlen(*(in+i+1))+1 <= 80)
				strcat(*(out+row)," ");
			else row += 1;
		}
	}
	strcat(*(out+row),*(in+n));

	for (int i=0;i<=row;i++)
		cout<<*(out+i)<<endl;

	return 0;
}


int main()
{
	int n,i,count,j;
	char word[50];
	cin>>n;
	count=0;
	for(i=0;i<n;i++)
	{
		cin>>word;
		for(j=0;word[j];j++);
		if(count+j<=80)
		{
			if(i==0)
				cout<<word;
			else
				cout<<" "<<word;
			count+=j+1;
		}
		else
		{
			cout<<endl;
			cout<<word;
			count=j+1;
		}
	}

	return 0;
}


int main ()
{
	int n;
	scanf("%d",&n);
	int i;
	struct point
	{
		char a[40];
	}words[1000];
	for(i=0;i<n;i++)
	{
		scanf("%s",words[i].a);
		int b;
		b=strlen(words[i].a);
		if(i<n-1)
		{
			words[i].a[b]=' ';
		    words[i].a[b+1]='\0';
		}
	}
	int num=0;
	for(i=0;i<n;i++)
	{
		num+=strlen(words[i].a);
        if(num+strlen(words[i+1].a)>81)
		{
				int k;
				k=strlen(words[i].a);
				words[i].a[k-1]='\n';
				words[i].a[k]='\0';
				num=0;
		}
	}
	for(i=0;i<n;i++)
	{
		printf("%s",words[i].a);
	}
	return 0;
}


int main()
{
	int n, i;
	char word[41], *p = NULL;
	int count = 0, flag_first_word = 1;
	cin >> n;
	for (i = 1; i <= n; i++)
	{
		cin >> word;
		p = word;
		if (flag_first_word == 1)
		{
			cout << p;
			count = strlen(p);
			flag_first_word = 0;
		}
		else
		{
			if (count + strlen(p) + 1 <= 80)
			{

				cout << " " << p;
				count += strlen(p) + 1;
			}
			else
			{
				cout << endl << p;
				count = strlen(p);
			}
		}
	}
	return 0;
}


int main()
{
	int n,i,k,x=0,flag=0,count=0;
	int a[500]={0};
	char word[500][50];
	cin >> n;
	for (i=0;i<n;i++)
	{
		cin >> word[i];
		a[i]=strlen(word[i])+1;
	}
	i=0;
	while (1)
	{
		while (count<=81)
		{
			count+=a[i];
			i++;
			if (i==n)
			{
				flag=1;
				break;
			}
		}
		if (flag==1)
		{
			cout << word[x];
			for (k=x+1;k<n;k++)
			{
				cout << " " << word[k];
			}
			break;
		}
		i--;
		count=0;
		cout << word[x];
		for (k=x+1;k<i;k++)
		{
			cout << " " << word[k];
		}
		cout << endl;
		x=i;
	}
	return 0;
}


int main()
{
	int n;
	cin>>n;
	int i,j,b[10000];
	char word[80];
	int rank=0,temp;
	while(n--)
	{
		if (rank==0)
		{
			scanf("%s", word);
			rank=strlen(word);
			cout<<word;
			continue;
		}
		scanf("%s", word);
		temp=strlen(word);
		if (rank+temp+1<=80)
		{
			cout<<' '<<word;
			rank+=temp+1;
		}
		else
		{
			cout<<endl;
			cout<<word;
			rank=temp;
		}
	}

	return 0;
}


int main()
{
	int n,i,m,j,length,sum=0;
	cin>>n;
	char str[41];
	cin.get();
	cin.getline(str,41,' ');
	sum=strlen(str)+1;
	cout<<str;
	for(i=1;i<n;i++)
	{
		cin.getline(str,41,' ');
		length=strlen(str);
		sum=sum+length+1;
		if(sum<=81)
		{cout<<' '<<str;
		continue;}
		else
		{
			cout<<endl;
			cout<<str;
			sum=strlen(str)+1;
		}
	}
	return 0;
}


char dat[1000][41];
int main()
{
    int l1,cou;
    int n;

    scanf("%d",&n);
    for (l1=1;l1<=n;l1++)
        scanf("%s",dat[l1]);

    printf("%s",dat[1]);
    cou=strlen(dat[1]);
    for (l1=2;l1<=n;l1++)
        if (cou+strlen(dat[l1])+1>80)
            {
                printf("\n%s",dat[l1]);
                cou=strlen(dat[l1]);
            }
        else
            {
                printf(" %s",dat[l1]);
                cou+=strlen(dat[l1])+1;
            }

    return 0;
}


int main(){
	int n,i,j,len[10000],tempzifushu=0,dancishu=-1;
	cin>>n;
	char a[1000][1000];
	for(i=0;i<=n-1;i++)
	{
		len[i]=0;
		cin>>a[i];
	}
	len[0]=strlen(a[0])+1;
    for(i=0;i<=n-2;i++)
    	len[i+1]=strlen(a[i+1])+1+len[i];
    for(i=0;i<=n-2;i++)
    {
    	if((len[i]<=81+tempzifushu)&&(len[i+1]>=82+tempzifushu))
    	{
    		tempzifushu=len[i];
    		for(j=dancishu+1;j<=i-1;j++)
    			cout<<a[j]<<" ";
    		cout<<a[i];
    		cout<<endl;
    		dancishu=i;
    	}
    }
    for(i=dancishu+1;i<=n-2;i++)
    	cout<<a[i]<<" ";
    cout<<a[n-1];
    return 0;
}


int main()
{
	int n;
	cin>>n;
	int length = 0;
	for(int i =0;i<n;i++)
	{
		char str[40];
		cin>>str;
		if(length == 0)
		{
			cout << str;
		length +=strlen(str);
		}
		else
		{
			length +=strlen(str);
			length++;
		if(length <= 80)
		cout<<' '<<str;
		else
		{
			cout <<endl;
			cout <<str;
			length = strlen(str);
		}
		}
	}
	return 0;
}


int main(){
int n,i,len,end=0;
char c[max+1];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s",c);
len=strlen(c);
if(i==0){
printf("%s",c);
end+=len;
}
else{
	if(len+end+1>line){
printf("\n");
printf("%s",c);
end=len;
	}
else{
	printf(" ");
printf("%s",c);
end+=len+1;
}
}
}
return 0;
}


int main()
{
	int n,total=0;
	int i=0,m=0;
	int len;
	char word[40];
	cin>>n;
	scanf("%s", word);
	len=strlen(word);
	cout<<word;
	i+=len;
	total+=1;
	while(1)
	{
		scanf("%s", word);
		len=strlen(word);
		if(total==n-1)
		{
			cout<<" "<<word;
			break;
		}
		else if(total<n-1)
		{
			if(i+len+1<=80)
			{
				cout<<" "<<word;
				i+=len+1;
				total+=1;
			}
			else
			{
				cout<<endl;
				cout<<word;
				i=len;
				total+=1;
			}
		}
	}
	return 0;
}


int main()
{
	char a[10000];
	int len;
	char *p;
	int i, n,j;
	int lenq=0, lenh=0;
	cin>>n;
	cin.get();
	cin.getline(a,10000);
	p=a;
	i=0;
	while(*(p+i)!=' ')
	{

		i++;
	}
	lenq=i;
	len=lenq;
	while(n--)
	{
		i=0;
		p+=lenq;
		p++;
		while(*(p+i)!=' '&&*(p+i)!='\0')
		{
			i++;
		}
		lenh=i;
		len+=lenh;
		len++;
		p-=lenq;
		p--;
		if(len<=80)
			{
				for(j=0;j<=lenq-1;j++)
					cout<<*(p+j);
				if(n)
					cout<<" ";
			}
		else
			{
				for(j=0;j<=lenq-1;j++)
					cout<<*(p+j);
				cout<<endl;
				len=lenh;
			}
		p+=lenq;
		p++;
		lenq=lenh;

	}

	return 0;
}


// ????
//????wayne
//?????12.30

char a[41];

int main()
{
	int cnt=0,n,i,length;
	cin>>n;
	cin>>a;
	cout<<a;
	cnt=strlen(a);
	for(i=1;i<n;i++)
	{
		cin>>a;
		length=strlen(a);
		cnt++;
		cnt+=length;
		if((cnt)<=80)
			cout<<" "<<a;
		else
		{
			cout<<endl;
			cout<<a;
			cnt=strlen(a);
		}
	}
	return 0;
}


int main()
{
 char **words;
 int n, i, j;
 scanf("%d",&n);
 words=(char **)malloc(sizeof(char*)*n);
 for (i=0;i<n;i++)
 {
  words[i]=(char *)malloc(sizeof(char)*40);
  scanf("%s",words[i]);
 }
 printf("%s",words[0]);
 j=strlen(words[0]);
 for (i=1;i<n;i++)
 {
  j++;
  j+=strlen(words[i]);
  if (j<=80)
   printf(" %s",words[i]);
  else
  {
   printf("\n%s",words[i]);
   j=strlen(words[i]);
  }
 }
 for (i=0;i<n;i++)
  free(words[i]);
 free(words);
 return 0;
}


int main(){
	int WN,i;
	cin>>WN;
	int len[WN];
	char wo[WN][40];
	for(i=0;i<WN;i++){
		cin>>wo[i];
		len[i]=strlen(wo[i]);
	}
	int sum=len[0]+len[1];
	cout<<wo[0];
	for(i=1;i<WN;i++){
		if(sum<80){
			cout<<" "<<wo[i];
			sum=sum+len[i+1]+1;
		}
		else{
			cout<<'\n'<<wo[i];
			sum=len[i]+len[i+1];
		}
	}
	return 0;
}


int main()
{
	struct
	{
		char word[41];
		int lw;
	}a[10000];
	int lpr=0;

	int n,m,i,j,k=0;
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%s",a[i].word);
		a[i].lw=strlen(a[i].word);
	}
	printf("%s",a[0].word);
	lpr=a[0].lw;
	for (i=1;i<n;i++)
	{
			lpr+=a[i].lw;
			if (lpr<80)
			{
				printf(" %s",a[i].word);
				lpr++;
			}
			else
			{
				printf("\n");
				printf("%s",a[i].word);
				lpr=a[i].lw;
			}
	}
	printf("\n");
	return 0;
}


int main(int argc, char* argv[])
{
	int n,p=0,m=0;
	int i;
	char word[60],s[60];
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%s",word);
    	m=strlen(word);
		if (p+m>80)
		{
			printf("\n");
			p=0;
		}
		else if(i>0)
		{
			printf(" ");
		}
		p=p+m+1;
		strcpy(s,word);
		printf(s);
	}
	printf("\0");
	return 0;
}


int main()
{
	int num,i,len;
	char word[1000][50];
	scanf("%d",&num);
	for(i=0;i<num;i++)
	{
		scanf("%s",word[i]);
	}
	len=0;
	i=0;
	while(i<num)
	{
		while(len+strlen(word[i])<=80)
		{
			len=len+strlen(word[i]);
			cout<<word[i];
			if(i+1>=num)
			{
				i++;
				break;
			}
			if(len+strlen(word[i+1])<80)
			{
				cout<<" ";
			}
			len=len+1;
			i++;
		}
		cout<<endl;
		len=0;
	}
}


int main(){
 char s[1000][40];
 int n,i;
 scanf("%d",&n);getchar();
 for(i=0;i<n;i++){
     scanf("%s",s[i]);getchar();
     }
  int h=strlen(s[0]);
  printf("%s",s[0]);
  for(i=1;i<n;i++){
     h+=strlen(s[i])+1;
     if(h<=80){
           printf(" %s",s[i]);getchar();
     }else{
           h=strlen(s[i]);
           printf("\n");getchar();
           printf("%s",s[i]);
           }
  }
    return 0;
}


int main()
{
    int n,i,wl,len=0;
    char w[64],p[64]="";
    scanf("%d",&n);
    for(int i=0;i<n;i++)
    {
         printf(p);
         scanf("%s",w);
         wl=strlen(w);
         if(len+wl>80)
         {
             printf("\n");
             len=0;
         }
         else if(i>0)
         {
              printf(" ");
         }
         len+=wl+1;
         strcpy(p,w);
    }
         printf(p);
         getchar();
         getchar();
         getchar();
         return 0;
}


int main(){
	int i , n , j , l , c = 0;
	char word[100000][20];
	scanf( "%d" , &n );
	for(i = 0 ; i <= n - 1 ; i++){
		scanf("%s" , word[i]);
	}
	for(i = 0 ; i <= n - 1; i++){
		printf("%s" , word[i]);
		l = strlen(word[i]);
		j = strlen(word[i+1]);
		c = c + l + 1;
		//	printf("\n%d %d %d" , l , j , c);
		if( c + j > 80) {
			printf("\n");
			c = 0 ;
		}
		else if( i == n - 1 ) printf("\n");
		else printf(" ");
	}

	return(0);
}


int main (){
	int n,t=0;
		cin>>n;
		char word[n][41];
		char *p[n];//????????,?????
		for(int i=0;i<n;i++){
			cin>>word[i];
			p[i]=word[i];
		}
		for(int i=0;i<n;i++){
			t+=strlen(word[i])+1;
		    if(t+strlen(word[i+1])<=80){
		    	if(i==n-1){
		    		cout<<p[i];
		    	    break;
		    	}
		    	cout<<p[i]<<" ";
		    }
		    if(t+strlen(word[i+1])>80){
		    	cout<<p[i]<<endl;
		    	t=0;
		    }
		}

	return 0;
}


/*
 * p.cpp
 *
 *  Created on: 2011-12-2
 *      Author: Administrator
 */
int main()
{
	int max,n,t,i;
	char word[50];
	cin>>n;
	cin>>word;                       //?????word???
	cout<<word;
	max=strlen(word);                //max?????????
	for(i=2;i<=n;i++){
		scanf("%s", word);
		t=strlen(word);
		max+=t+1;
		if(max>80){                  //?????
			max=t;
			cout<<endl<<word;        //????????
			continue;
		}
		cout<<' '<<word;
	}
	return 0;
}


int main(){
	char words[50];
	int n,sum=0,temp=0,lens;
	cin>>n;
	while(n>0){
		cin>>words;
		lens=strlen(words);
		if(lens+sum<80){
			if(temp==0){
				cout<<words;
				sum=sum+lens;
				temp++;
			}
			else{
				cout<<" "<<words;
				sum=sum+lens+1;
				temp++;}
		}
		else {
			cout<<endl<<words<<" ";
			sum=lens+1;
			temp=0;
		}
		n--;
		memset(words,0,sizeof(words));
	}
	return 0;
}


int main()
{
	int n=0;
	scanf("%d",&n);
	int i=0;
	char s[40];
	int length=0;
	int len=0;
	for(i=0;i<n;i++)
	{
		scanf("%s",s);
		len=strlen(s);
		length+=len;
		if(length<MAX)
		{
			if(length!=len)
			{
				printf(" ");
				length++;
			}
			printf(s);
		}
		else
		{
			printf("\n");
			length=len;
			printf(s);
		}
	}
	return 0;
}


int main()
{
	int n=0,count=0;
	cin>>n;cin.get();
	for(int i=0;i<n;i++)
	{
		char letter[50];
		cin>>letter;
		if(count+strlen(letter)+1>80)
		{
				count=0;
				cout<<endl;
		}
		if(count==0)
		{
			cout<<letter;
			count=strlen(letter);
		}
		else
		{
			cout<<' '<<letter;
			count+=1+strlen(letter);
		}
	}
	return 0;
}


int main()
{
    int n;
	scanf("%d",&n);
	char word[1000][41];
	int len[1000];
	int i;
	for(i=0;i<n;i++)
	{
		scanf("%s",word[i]);
		len[i]=strlen(word[i]);

	}
	int m=0;
	int flag=0;
	for(i=0;i<n;i++)
	{
		if(m==0)
		      {m+=(len[i]);flag=1;}
		else m+=(len[i]+1);
		if(m<=80)
		{
			if(flag==1)
			{printf("%s",word[i]);flag=0;}
			else printf(" %s",word[i]);

		}
		else
		{
			m=0;
			printf("\n");
			i--;
		}
	}

    return 0;

}


int main()
{
	int n;
	scanf("%d",&n);
	char str[800][80];
	int i;
	for(i=0;i<n;i++)
	{
		scanf("%s",str[i]);
	}
	int a=0;
	int k=0;
	int j;
	for(i=0;i<n-1;i++)
	{
		a=a+strlen(str[i])+1;

		if(a<80&&((a+strlen(str[i+1])+1)==80||(a+strlen(str[i+1]))==80)) //jia shang zui hou yi ge ci zheng hao 80(wu kong ge)//
		{
			for(j=k;j<=i;j++)
			{
				printf("%s ",str[j]);
			}
			printf("%s",str[j]);
			printf("\n");
			a=0;
			k=i+2;
			i=i+1;
		}

		if(a<80&&(a+strlen(str[i+1])+1)>80)
		{
			for(j=k;j<i;j++)
			{
				printf("%s ",str[j]);
			}
			printf("%s",str[j]);
			printf("\n");
			a=0;
			k=i+1;
		}

	}
	for(j=k;j<n-1;j++)
	{
		printf("%s ",str[j]);
	}
	printf("%s",str[j]);
	return 0;
}


int main()
{
	int n;
	int len;
	cin >> n;
	cin.get();
	char str[42];
	cin >> str;
	cout << str;
	int num=strlen(str);
	n=n-1;
	while(n--)
	{
		cin>> str;
		len=strlen(str);
		num=num+len+1;
		if(num<=80)
			cout<<' '<<str;
		else
		{
			cout<<endl;
			cout<<str;
			num=len;
		}
	}
	return 0;
}


int main()
{
 int n;
 cin>>n;
 int len,len2;
 //char word[50];
 char ans[32768];
 memset(ans,0,sizeof(ans));
 cin>>ans;
 len=strlen(ans);
 len2=strlen(ans);
 //cout<<ans<<endl;
 //cout<<len;
 for(int i=1;i<n;i++)
 {
	 char word[50];
  cin>>word;
  if(len+1+strlen(word)>80)
  {  /* cout<<len<<endl;
      cout<<len2<<endl;*/
	  ans[len2]='\n';
	  strcat(ans,word);
	  len=strlen(word);
	  len2=len2+strlen(word)+1;
  }
  else
  {
   ans[len2]=' ';
   strcat(ans,word);
    len=len+1+strlen(word);
	len2=len2+1+strlen(word);
  }
 /* len=len+1+strlen(word);*/
 }
 //cout<<len<<endl;
 cout<<ans<<endl;
 return 0;
}


int judge(char *p1,char *p2,int l)
{
	char *x1,*t1,*t2;
    int y=1;
	t1=p1;
	x1=t1+l-1;
	t2=p2;
	while ((t1<=x1) && y)
	{
		if (*t1!=*t2) y=0;
		t1++;
		t2++;
	}
	return y;
}

void main()
{
	char c[3243];
		int i,j,k,n,l,len;
	//freopen("tt.in","r",stdin);
	//freopen("tt.out","w",stdout);
    scanf("%d",&n);
	//for(i=0;i<=l-1;i++) if (c[i]==' ') k++;

	len=0;
	for (i=1;i<=n;i++)
	{

    scanf("%s",c);
	l=strlen(c);
	if (len==0) {printf("%s",c); len+=l;}
	else
	   if (len+l+1<=80)
	   {
		printf(" %s",c);len+=l+1;
	   }
	   else
	   {printf("\n%s",c); len=l;}

	}

}


void main()
{
	int n,i,m=0;
	struct word
	{
		char word[40];
		int len;
	} words[500];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%s",words[i].word);
		words[i].len=strlen(words[i].word);
	}
	printf("%s",words[0].word);
	m=words[0].len;
	for(i=1;i<n;i++)
	{
		m+=(words[i].len+1);
		if(m<=80) printf(" %s",words[i].word);
		else
		{
			printf("\n");
			printf("%s",words[i].word);
			m=words[i].len;
		}
	}
	printf("\n");
}


int main()
{
	char a[100],v;int number=0,c,m=1,an_number=0;
	cin>>c;
	const int max=80;
	while(m)
	{
		while(number<=max)
		{
			cin>>a;
			an_number+=1;
			if(number==0)
			{
				cout<<a;
				number=number+strlen(a);
			}
			else if(number+strlen(a)+1<=max)
			{
				cout<<' '<<a;
				number=number+strlen(a)+1;
			}
			else break;
			if(an_number==c)
			{
				m=0;
				break;
			}
		}
		if(an_number!=c)
		{
			cout<<endl;
			cout<<a;
			number=strlen(a);
		}
	}
	return 0;
}


int main()
{
	char word[300][40];
	int i,n,sum;
	cin>>n;
	for(i=0;i<n-1;i++)
	{
		scanf("%s",word[i]);
	}
	scanf("%s",word[n-1]);
	sum=0;
	i=0;
	do
	{
		cout<<word[i];
		sum+=strlen(word[i]);
		i++;
		while(sum+strlen(word[i])+1<=80)
		{
			cout<<' '<<word[i];
			sum+=strlen(word[i])+1;
			i++;
			if(i==n)
			{
				break;
			}
		}
		cout<<endl;
		sum=0;
	}while(i<n);
	return 0;
}


int main()
{
	char a[300][41],*p=NULL;
	int n=0;
	cin >>n;
	for(int i=0;i<n;i++)
		cin >>a[i];
	p=a[0];
	int sum=0;
	for(int i=0;i<n;i++)
	{
		p=a[i];
		if(sum+strlen(a[i])>79)
		{
			i=i-1;
			sum=0;
			cout <<endl;
		}
		else if(sum+strlen(a[i])==79)
		{
			if(sum!=0)
				cout <<" ";
			do{
				cout <<*p;
				p=p+1;
			}while(*p!='\0');
			cout <<endl;
			sum=0;
		}
		else{
			if(sum!=0)
			{
				cout <<" ";
				sum=sum+1;
			}
			do{
				cout <<*p;
				p=p+1;
			}while(*p!='\0');
			sum=sum+strlen(a[i]);
		}
	}
	cout <<endl;
	return 0;
}


int main()
{
	int n;
	int sum = 0;
	char a[50];
	cin>>n;
	for(int i = 0;i<n;i++)
	{
		cin>>a;
		int s = strlen(a);
		sum += s+1;
		if(sum == s+1)
		{
			cout<<a;
			sum--;
		}
		else if(sum>80)
		{
			cout<<endl;
			cout<<a;
			sum = s;
		}
		else if(sum<80)
		{
			cout<<' '<<a;
		}
		else if(sum == 80)
		{
			cout<<' '<<a;
			cout<<endl;
			sum = 0;
		}
	}

	return 0;
}


/*?????????????
 *??????
 *???2011-4-10
 */
int main()
{
	char word[41];
	int counter, num, len;
	cin >> num;
	counter = 0;
	for (int i = 0; i < num; i++){
		cin >> word;
		len = strlen(word);
		counter += len;
		if (counter + 1 > 80){
			cout << endl;
			counter = len;
		}
		else if (counter != len){
			cout << ' ';
			counter++;
		}
		cout << word;
	}
	return 0;
}


int main()
{
	int words=0,count=0;
	char str1[100],str2[100];
	int length1=0,length2=0,length3=0;
	cin>>words;
	gets(str1);
	cin>>str1;
	count=1;
	cout<<str1;
	length1=strlen(str1);
	while (count<words)
	{
		cin>>str2;
		length2=strlen(str2);
		length1=length1+length2+1;
		if (length1<=80)
			cout<<" "<<str2;
		else
		{
			cout<<endl;
			cout<<str2;
			strcpy(str1,str2);
			length1=strlen(str1);
		}
		count++;
	}
	return 0;
}


int main()
{
	char word[50], *p = NULL;
	int n, k = 0, sum = 0, len, f = 1;
	cin >> n;
	while(k < n)
	{
		cin >> word;
		p = word;
		len = strlen(p);
		if(f == 1)
		{
			cout << word;
			sum = len;
			k++;
			f = 0;
			continue;
		}
		if(sum + 1 + len > 80)
		{
			cout << endl << word;
			sum = len;
			k++;
			continue;
		}
		if(sum + 1 + len <= 80)
		{
			cout << " " << word;
			sum = sum + 1 + len;
			k++;
			continue;
		}
	}
	return 0;
}


int main()
{
	int n,sum=0;
	char word[41]={0};
	cin>>n;
	cin>>word;
	sum+=strlen(word);
	cout<<word;
	memset(word,0,sizeof(word));
	for(int i=1;i<n;i++)
	{
		cin>>word;
		sum+=strlen(word)+1;
		if(sum>80)
		{
			cout<<endl<<word;
			sum=strlen(word);
		}
		else cout<<' '<<word;
	}
	return 0;
}


int main()
{
	char a[40];
	int n, sum = 0, i = 0;
	cin >> n;
	while (cin >> a && n > 0)
	{
		i ++;
		int len = strlen(a);
		if (i == 1)
		{
			sum = sum + len;
		}
		else
		{
			sum = sum + len + 1;
		}
		if (sum <= 80)
		{
			if (i == 1)
			{
				cout << a;
			}
			else
			{
				cout << " " << a;
			}
		}
		if (sum == 80)
		{
			cout << endl;
			sum = 0;
			i = 0;
		}
		if (sum > 80)
		{
			cout << endl;
			cout << a;
			sum = len;
			i = 1;
		}
		n --;
	}
	return 0;
}


int main()
{
	char a[400][50] = {0};
	int i, b[400];
	int n;
	cin >> n;
	for (i = 1; i <= n; i++)
	{
		cin >> a[i];
		b[i] = strlen(a[i]);
	}
	int num;
	int length = b[1];
	i = 1;
	cout << a[1];
	while(1)
	{
		if (i > 1)
		length = length + 1 + b[i];
			if (length + 1 + b[i + 1] <= 80)
			{
				cout << " " << a[i + 1];
			}
			else
			{
				cout << endl << a[i + 1];
				length = -1;
			}
		i++;
		if (i == n)
			break;
	}
	return 0;
}


int main()
{
	int n;
	cin >> n;
	cin.get();
	char a[90000];
	cin.getline(a, 90000);
	int la = strlen(a);
	int i, j = 80;
	while(j < la)
	{
		for(i = j; i > j - 30; i--)
		{
			if(a[i] == ' ')
			{ a[i] = '~'; break; }
		}
		j = i + 81;
	}
	for(i = 0; i < la; i++)
	{
		if(a[i] != '~')
			cout << a[i];
		else
			cout << endl;
	}
	return 0;
}


int main( )
{
	int n,i;
	cin>>n;
	char str[3000][45];
	for(i=0;i<n;i++)
		cin>>str[i];
	i=0;
	while(i<n)
	{
		int len=strlen(str[i]);
		cout<<str[i];
		i++;
		while(i<n)
		{
			len=len+strlen(str[i])+1;
			if(len<=80)
				cout<<' '<<str[i];
			else
			{
				cout<<endl;
				break;
			}
			i++;
		}
	}
	return 0;
}


int	main()
{
	int	n;
	int	count;
	cin >> n;
	for( int i = 1 ; i <= n ; i ++ )
	{
		char	s[41];
		cin >> s;
		if( i == 1 )
		{
			cout << s;
			count = strlen( s );
		}
		else
		{
			if( count + strlen( s ) + 1 <= 80 )
			{
				cout << ' ' << s;
				count += strlen( s ) + 1;
			}
			else
			{
				cout << endl << s;
				count = strlen( s );
			}
		}
	}

	return 0;
}


int main()
{
    char word[1000][40];
    int number,count=0,i;
    scanf("%d",&number);
    for(i=0;i<number;i++)scanf("%s",word[i]);
    for(i=0;i<number;i++)
    {
        if(count+strlen(word[i])+1<=80)
        {
            if(i==0)
            {
                printf("%s",word[i]);
                count+=strlen(word[i]);
            }
            else
            {
                printf(" %s",word[i]);
                count+=strlen(word[i])+1;
            }
        }
        else
        {
            printf("\n%s",word[i]);
            count=strlen(word[i]);
        }
    }
    return 0;
}


int main(void)
{
	int cnt;
	char data[1000][90];
	scanf("%d",&cnt);
	int i;
	for(i=0;i<cnt;i++)
		scanf("%s",data[i]);
	int c=0;
	i=0;
	while(i<cnt){
		while(c<80){
			if(c+strlen(data[i]) >= 80)
				break;
			if(c != 0)
			{
				printf(" ");
				c++;
			}
			printf("%s",data[i]);
			c = c+strlen(data[i]);
			i++;
			if(i>=cnt)
				break;
		}
		printf("\n");
		c=0;
	}

	return 0;
}


// lp.cpp : Defines the entry point for the console application.
//
// ??????.cpp : Defines the entry point for the console application.
//

int main()
{
	int n,i,j,len=0;
	char s[1000][100];
	char *p;
	cin>>n;
	for(i=0;i<n;i++)
		cin>>s[i];
	cout<<s[0];
	len=strlen(s[0]);
    for(i=1;i<n;i++)
	{
		if(len+strlen(s[i])+1<=80)
		{
			p=s[i];
			cout<<' '<<p;
			len+=strlen(s[i])+1;
		}
		else
		{
			p=s[i];
			cout<<endl;
			cout<<p;
			len=strlen(s[i]);
		}
	}
	return 0;
}


int main(){
	char word[1010][30];
	int i, n, len = 0;

	cin >> n;
	for (i = 0; i < n; i++)
		cin >> word[i];
	cout << word[0];
	len = strlen(word[0]) + 1;
	for (i = 1; i < n - 1; i++)
	{
		if (len + strlen(word[i]) < 81)
		{
			if (len == 0)
			{
				cout << word[i];
			}
			else
				cout << " " << word[i];
				len = len + strlen(word[i]) + 1;
		}
		else if (len + strlen(word[i]) > 80)
		{
			cout << endl;
			len = 0;
			i = i - 1;
		}
	}
	cout << " " << word[n - 1];
	return 0;
}


int main()
{
	char letter[40];
	int n, i, blank = 0, num = 0;
	cin >> n;
	for (i = 1; i <= n; i++)
	{
		memset(letter, '0', sizeof(letter));
		cin >> letter;
		if (strlen(letter) + blank + num > 80)
		{
			blank = 0;
			num = 0;
			cout << endl;
		}
		if (blank)
			cout << ' ';
		cout << letter;
		num += strlen(letter) + blank;
		blank = 1;
	}
	return 0;
}


int main()
{
	int n,length=0,l;
	cin>>n;
	char a[1000][40];
	for (int i=0;i<n;i++)
	{
		cin>>a[i];
	}
	for (int i=0;i<n;i++)
	{
		l=strlen(a[i]);
		if (i==n-1)
		{	cout<<a[i]<<endl;
		break;}
		if (length+l+1+strlen(a[i+1])<=80)
		{
			cout<<a[i];
			cout<<' ';
			length+=l+1;
		}
		else
		{
			cout<<a[i];
			cout<<endl;
			length=0;
		}

	}

	return 0;
}


int main()
{
    int n,i,l,sum;
    char s[220];

    scanf("%d",&n);
    sum=0;
    for (i=0;i<n;i++)
    {
        scanf("%s",s);
        l=strlen(s);
        if (sum==0) {printf("%s",s);sum=l;}
        else if (sum+1+l>80) {printf("\n%s",s);sum=l;}
        else {printf(" %s",s);sum=sum+1+l;}
    }
    return 0;
}


int main()
{
	char word[1000][83];
	int n,i,counter=0;
	cin>>n;
	for(i=0;i<n;i++)
		cin>>word[i];
	//cout<<word[28]<<endl;
	for(i=0;i<n;i++)
	{
		if(counter==0)
		{
			cout<<word[i];
			counter=counter+strlen(word[i]);
		}
		else
		{
			if(counter+strlen(word[i])+1<=80)
			{
				cout<<" "<<word[i];
				counter=counter+strlen(word[i])+1;
			}
			else
			{
				cout<<endl;
				counter=0;
				i--;
			}
		}
	}
	return 0;
}


int main()
{
	int n;
	char c[41];
	int s=0;
	cin>>n;
	int y=0;
	for(int i=0;i<n;i++)
	{

		int f=0;
		cin>>c;
		s+=strlen(c)+1;
		if(s>81)
		{
			cout<<endl;
			s=0;
			s+=strlen(c)+1;
			f=1;
		}
		else
			if(y!=0)
			cout<<" ";
		y=1;
		cout<<c;
	}
	return 0;
}


int main ()
{
	int n,i,sum=0,k=1;
	cin>>n;
	char a[1000][40];
	for(i=0;i<n;i++)
		cin>>a[i];
	for(i=0;i<n;i++)
	{
		if(k==1)
			sum=sum+strlen(a[i]);
		else
			sum=sum+strlen(a[i])+1;
		if(sum<=80 && k!=1)
			cout<<" "<<a[i];
		else if(sum<=80 && k==1)
		{
			k=0;
			cout<<a[i];
		}
		if(sum>80)
		{
			cout<<endl;
			cout<<a[i];
			sum=strlen(a[i]);
		}
		else if(sum==80)
		{
			cout<<endl;
			sum=0;
			k=1;
		}
	}
	return 0;
}


int main()
{
    int n,i,j,l,k;
    char s[100];
    scanf("%d",&n);
    k=0;
    for(i=1;i<=n;i++)
    {
        scanf("%s",s);
        l=strlen(s);
        if (k==0)
        {
            printf("%s",s);
            k=l;
            continue;
        }
        if (k+l<80)
        {
            printf(" %s",s);
            k=k+l+1;
            continue;
        }
        if (k+l>=80)
        {
            printf("\n%s",s);
            k=l;
            continue;
        }
    }
    return 0;
}


int main()
{
	int i,k,flag=0;
	char word[1000][40]={'\0'};
	int lenth[1000]={0};
	cin>>k;
	cin.get();
	for(i=0;i<k;i++)
	{
		cin.getline(word[i],40,' ');
		lenth[i]=strlen(word[i]);
	}
	cout<<*word;
	flag=*lenth;
	for(i=1;i<k;i++)
	{
		flag=flag+1+*(lenth+i);
		if(flag>80)
		{
			cout<<endl;
			cout<<*(word+i);
			flag=*(lenth+i);
		}
		else
			cout<<" "<<*(word+i);
	}
	return 0;
}


int main()
{
	int n;
	scanf("%d",&n);
	char **p=(char **)malloc((n+5)*sizeof(char *));
	for(int i=0;i<n;i++)
	    {
		p[i]=(char *)malloc(sizeof(char)*41);
		scanf("%s",p[i]);
		}
	int count=0;
	for(int i=0;i<n;i++)
	    {
		if(count==0)
			{
			printf("%s",p[i]);
			count+=strlen(p[i]);
			}
		else
			{
			if(count+strlen(p[i])+1<=80)
				{
				printf(" %s",p[i]);
				count+=(strlen(p[i])+1);
				}
			else
				{
				printf("\n");
				printf("%s",p[i]);
				count=strlen(p[i]);
				}
			}
		}
}


int main()
{
	int i=0,n,flag=0,sum=0;
	char sen[59];
	cin>>n;
	cin.get();
	while(cin>>sen)
	{
		if(flag==0&&sum<80)
		{
			cout<<sen;
			sum=sum+strlen(sen);
			//cout<<sum<<endl;
			flag=1;
		}
		else if(flag==1)
		{
			sum=sum+strlen(sen)+1;
			if(sum<=80)
			cout<<" "<<sen;
			else
			{
				cout<<endl<<sen;
				sum=strlen(sen);
			}
		}
	}

	return 0;
}


int main(){
	int n;
	scanf("%d",&n);
	char a[1000][40];
	int i;
	for(i=0;i<n;i++){
		scanf("%s",a[i]);
	}
	int b[1000];
	for(i=0;i<n;i++){
		b[i]=strlen(a[i]);
	}
	printf("%s",a[0]);
	int count=strlen(a[0]);
	for(i=1;i<n;i++){
		if(count+1+strlen(a[i])<=80){
			printf(" %s",a[i]);
			count=count+1+strlen(a[i]);
		}else{
			printf("\n%s",a[i]);
			count=strlen(a[i]);
		}
	}
	return 0;
}


int main()
{
    char a[100],*p;
    int n;
    cin>>n;
    int num;
    cin>>a;
    int len=strlen(a);
    p=a;
    cout<<endl;
    num=len;
    cout<<p;
    for (int i=1;i<n;i++)
    {
                   cin>>a;
                   int len=strlen(a);
                   p=a;
                   if (num+len+1>80) {cout<<endl;num=len;cout<<p;}
                   else {num+=len+1;cout<<' ';cout<<p;}
    }

    return 0;
}


int main()
{
	int n,i;
	cin>>n;
	char a[1000][50];
	for (i=1;i<=n;i++)
		cin>>a[i];
	int count=0;
	for (i=1;i<=n;i++)
	{
		count=count+strlen(a[i]);
		if (count<=80)
		{
			if (i<n)
			{
			cout<<a[i];
			if (count+1+strlen(a[i+1])<=80)
			{
				cout<<" ";
			}
			count++;
			}
			else if (i==n)
				cout<<a[n];
		}
		else if (count>80)
		{
			if (i<n)
			{
			count=strlen(a[i]);
			cout<<endl;
			cout<<a[i]<<" ";
			count++;
			}
			else if (i==n)
				cout<<a[n];
		}
	}
}


main()
{	char words[500][40];
	int n,i,j,numwords[500]={0},num=0;
    scanf("%d",&n);
	for(i=0;i<n;i++)
  	{scanf("%s",words[i]);}

	for(i=0;i<n;i++)
	{	for(j=0;words[i][j]!='\0';j++)
 		{	numwords[i]++;
		 							  }

					 }

	for(i=0;i<n-1;i++)
	{	if((numwords[i]+num)>80)
		{	printf("\n");
			printf("%s ",words[i]);
			num=numwords[i]+1;
		 						}
	 	else if((numwords[i+1]+num+numwords[i]+1)>80)
	 	{	printf("%s",words[i]);
	 		num=num+numwords[i]+1;
		 						}
		else
		{	printf("%s ",words[i]);
	 		num=num+numwords[i]+1;
		 						}
					 }
  	  printf("%s",words[n-1]);

			 }


int main ()
{
	int n, i=0, temp1, temp2;
	scanf("%d", &n);
	char s[10000];
	gets(s);
	gets(s);
	char * ps=s, * ps1;
	temp1=(int)s;
	for ( ; *ps; ps++) {
		i++;
		if (*ps==' ') {
			if (i>LINELENTH+1) {
				for(ps1=(char *)temp1; ps1<(char *)temp2; ps1++)
					printf("%c", *ps1);
				i=((int)ps-temp2)/sizeof(char);
				temp1=temp2+sizeof(char);
				printf("\n");
			}
			else temp2=(int)ps;
		}
	}
	for (ps1=(char *)temp1; *ps1; ps1++)
		printf("%c", *ps1);
	return 0;
}


int main()
{
	int n, wl=0,/*wordlength*/ ll=0,/*linelength*/ i;
	char c[50]={'\0'}, ch;
	char *p=c;
	cin>>n; cin.get();
        do
	{
                cin.get(ch);
		if (ch!=' ')  { cout<<ch; ll++; }
	}
        while (ch!=' ');
	for (i=1; i<=n; i++)
	{
		wl=0; p=c;
		cin.get(ch);
		while (ch!=' ' &&  ch!='\n')
		{
			wl++;  *p=ch; p++;
			cin.get(ch);
		}
		if (ll+wl<80 && i<n)
		{
			cout<<' '; ll=ll+wl+1;
		}else
		{
			cout<<endl; ll=wl;
		}
		for (p=c; p<(c+wl); p++) cout<<*p;
	}
	return 0;
}


int main()
{
	int n,i,letters=0,space=0;
	char (*word)[41];
	scanf("%d",&n);
	word=(char *)malloc((n+1)*41*sizeof(char));
	for(i=0;i<n;i++)
	{
		scanf("%s",word+i);
	}
	for(i=0;i<n;i++)
	{
		letters+=(strlen(word+i));
		if(letters>80)
		{
			letters=strlen(word+i);
			printf("\n%s",word+i);
		}else if(letters==80){
			letters=0;
			printf(" %s\n",word+i);
			space=0;
			letters--;
		}else if(space==0){
			printf("%s",word+i);
			space++;
		}else{
			printf(" %s",word+i);
		}
		letters++;
	}
	return 0;
}


int main()
{
	int num;
	char word[50];
	cin>>num;
	int count = 0;
	while(num--){
		scanf("%s",word);
		if(count ==0){
			cout<<word;
			count = strlen(word);
		}
		else{
			count += (strlen(word)+1);
			if(count > 80)
			{
				cout<<endl<<word;
				count = strlen(word);
			}
			else if(count==80){
				cout<<' '<<word<<endl;
				count = 0;
			}
			else
				cout<<' '<<word;
		}
	}
	return 0;
}


int main()
{ int n;
   scanf("%d",&n);
  int i=0,num=0;
  char s[100];
  while(i<n)
  {scanf("%s",&s);
   num+=strlen(s);
   if(num==strlen(s))
   {printf("%s",s);
   num++;}
   else if(num<80)
   {printf(" %s",s);
    num++;}
    else if(num==80)
    {printf(" %s\n",s);
     num=0;}
   else if(num>80)
   {printf("\n%s",s);
     num=strlen(s);
     num++;}
      i++;
  }
     return 0;
}


int main(){
	char word[41];
	int n, cnt, len;

	scanf("%d", &n);
	cnt = 0;
	while (n--){
		scanf("%s", word);
		len = strlen(word);
		if (cnt == 0){
			printf("%s", word);
			cnt = len;
		}else if (cnt + len < 80){
			printf(" %s", word);
			cnt += len + 1;
		}else{
			printf("\n%s", word);
			cnt = len;
		}
	}

	return 0;
}


int main()
{
	char a[1000][50] ;
    int m , i, b[1000],sum ;
	cin >> m ;
	for (i = 1 ; i <= m ; i ++ )
	{
			cin >> a[i] ;
			b[i] = strlen(a[i]) ;
	}
	sum = 0 ;
	for (i = 1 ; i <= m -1 ; i ++ )
	{
        sum = sum + b[i] + 1 ;
		if(sum < 80 && sum + b[i + 1] > 80 )
		{
			cout << a[i] <<endl;
			sum = 0 ;
		}
		else if(sum == 80)
		{
			cout << a[i] << endl ;
			sum = 0 ;
		}
		else if (sum == 81)
        {
			sum = 0 ;
			cout << a[i] << endl ;
		}
		else
		cout << a[i] << " ";/*if(sum == 79)
		{
			cout << a[i] << endl ;
			sum = 0 ;
		}
		else if(sum == 80)
		{
			cout << a[i] << endl ;
			sum = 0 ;
		}
		else
		{
			cout << endl << a[i] ;
			sum = b[i] ;
		}*/
	}
	cout << a[m] ;
	return 0 ;
}


void main(){
	char *f(char *p);
	char b[3],c[10000],*p,*q;
	int i;
	gets(b);
	gets(c);
	p=c;
	while((p+79)<c+strlen(c))
	{
		for(q=p;q<f(p);q++)
		{
			printf("%c",*q);
		}
		printf("\n");
		p=f(p)+1;
	}
	for(q=p;q<c+strlen(c);q++)
	{
		printf("%c",*q);
	}
	scanf("%d",&i);
}

char *f(char *p)
{
	char *s;
	for(s=p+80;s>p;s--)
	{
		if(*s==32) break;
	}
	return s;
}


int main()
{
	int n, i, j, number;
	char input[500][40] = {0};
	int lenth[500] = {0}, lenth0 = 0;
	cin >> n;
	for (i = 0; i < n; i++)
	{
		cin >> input[i];
		lenth[i] = strlen(input[i]);
	}
	i = 0, number = 0;
	while (1)
	{
		lenth0 += lenth[number] + 1;
		if (lenth0 <= 81)
		{
			number++;
		}
		if (lenth0 > 81 || number == n)
		{
			for (j = i; j < number - 1; j++)
			{
				cout << input[j] << " ";
			}
			cout << input[number - 1] << endl;
			i = number;
			lenth0 = 0;
		}
		if (i == n)
			break;
	}
	return 0;
}


int main()
{
	int n,a[1000],s=0;
	cin>>n;
	char word[40],*q;
	cin>>word;
    q=word;
	while(*q!='\0')q++;
	a[1]=q-word;
	s=s+a[1]+1;
	cout<<word;
	for(int i=2;i<=n;i++)
	{
        char words[40],*p;
		cin>>words;
		p=words;
		while(*p!='\0')p++;
		a[i]=p-words;
		s=s+a[i]+1;
		if(s<=80)
		cout<<" "<<words;
		else
			{if(s==81)cout<<" "<<words;
			else
		{cout<<endl;
		cout<<words;
		s=a[i]+1;}}

	}
	return 0;
}


int main()
{
    int n,f=0,f1=0;
    char w[41];
    cin>>n;
    cin.get();
    while(cin>>w)
    {
        if ((f+1+strlen(w))<=80)
        {
            if(f1!=0)
            {
                f++;
                cout<<" ";
            }
            cout<<w;
            f1++;
            f+=strlen(w);
        }
        else
        {
            cout<<endl;
            f1=0;
            cout<<w<<" ";
            f=strlen(w)+1;
        }
        memset(w,0,sizeof(w));
    }
    return 0;
}


int main()
{
	char a[50];
	int n;
	cin>>n;
	int i;
	int num=0;
	for(i=0;i<n;i++)
	{
		cin>>a;
		if(i==0)
		num=num+strlen(a);
		else
			num=num+1+strlen(a);
		if(num<=80)
		{
			if(i==0)
				cout<<a;
			else
			    cout<<" "<<a;
		}
		else
		{
			cout<<endl;
		    cout<<a;
		    num=strlen(a);
		}
	}
		return 0;
}


int main()
{
	int n , i;
	char word[500][40];

	cin >> n;
	cin.get();

	if(n > 1)
		for(i = 0; i < n - 1; i++)
			cin.getline(word[i] , 40 , ' ');

	cin.getline(word[n - 1] , 40);

	char (*p)[40] = word;
	int len = strlen(*p);

	cout << *p++;

	for(i = 1; i < n; i++)
	{
		len += strlen(*p) + 1;

		if(len > 80)
		{
			cout << endl;
			cout << *p;
			len = strlen(*p);
		}
		else
			cout << " " << *p;

		p++;
	}

	return 0;
}


int main()
{
    int n, count=0;
    char word[30];
    cin>>n;
    cin>>word;
    cout<<word;
    count=(int)strlen(word);
    n--;
    while (n--)
    {
        cin>>word;
        if (count+strlen(word)<80)
        {
            cout<<" "<<word;
            count=count+(int)strlen(word)+1;
            continue;
        }
        if (count+strlen(word)>=80)
        {
            cout<<endl<<word;
            count=(int)strlen(word);
        }
    }

    return 0;
}


main()
{
      char word[1000][50]={'\0'};
      int i,n,sum,len;
      scanf("%d",&n);

      for(i=0;i<n;i++)
          scanf("%s",word[i]);
      printf("%s",word[0]);
      sum=strlen(word[0]);
      for(i=1;i<n;i++)
      {
          len=strlen(word[i]);
          sum+=len+1;
          if(sum<=80)
          {
              printf(" %s",word[i]);

          }
          else
          {
              printf("\n");
              printf("%s",word[i]);
              sum=strlen(word[i]);
          }
      }

}


//
//  main.cpp
//  test
//
//  Created by ??? on 12-12-23.
//  Copyright (c) 2012? ???. All rights reserved.
//

    int main() {
        int n, i, wl, len = 0,line=0;
        char w[64];
        scanf("%d", &n);
        for (int i=1; i<=n; i++) {
            scanf("%s",w);
            wl=strlen(w);
            if (line==0) {
                printf("%s",w);
                len=wl;
                line++;
            }
            else if(len+wl+1<=80)
            {
                printf(" %s",w);
                len+=wl+1;
            }
            else if(len+wl+1>80)
            {
                printf("\n%s",w);
                len=wl;
            }
        }
        return 0;
    }


void judge(char s[],int *n,int *m)
{
	char *a,*b,word[40];
	int k=0;
	for(a=s+*n,b=word;*a!=' '&&*a!='\0';a++,b++)
	{
		k++;
		*b=*a;
	}
	*b='\0';
	if(k<80-*m+1)
	{
		if(*m!=1)
		{
			printf(" ");
		}
		printf("%s",word);
		*n=*n+k+1;
		*m=*m+k+1;
		if(*m>80)
		{
			printf("\n");
			*m=1;
		}
	}
	else
	{
		if(k==80-*m+1)
		{
			printf(" ");
			printf("%s\n",word);
			*n=*n+k+1;
			*m=1;
		}
		else
		{
			printf("\n%s",word);
			*n=*n+k+1;
			*m=k+2;
		}
	}
}
int main()
{
	void judge(char s[],int *n,int *m);
	int n,now=0,line=1,i;
	int *all=&now,*current=&line;
	char para[2000],enter;
	scanf("%d%c",&n,&enter);
	gets(para);
	for(i=1;i<=n;i++)
	{
		judge(para,all,current);
	}
	return 0;
}


void main()
{
	int n,i,temp;
	char word[300][50]={0};

	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%s",word[i]);

	i=0;
	temp=strlen(word[0])+1;
	while(i<n)
	{

			if(temp+strlen(word[i+1])<=80)
			{
				if(i==n-1)
                     printf("%s",word[i]);
				else
					printf("%s ",word[i]);
				i=i+1;
				temp=temp+strlen(word[i])+1;
			}
			else
			{
            printf("%s\n",word[i]);
			i=i+1;
			temp=strlen(word[i])+1;
			}

	}
}


int main(){
    int n,i,k=0,M=-1,j;
	char a[1000][100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%s",a[i]);
	while(1){
		for(j=k;j<n;j++){
			M+=strlen(a[j])+1;
			if(j==k)
				printf("%s",a[j]);
			else if(M<81)
				printf(" %s",a[j]);
			else{
				printf("\n");
				M=-1;
				k=j;
				break;
			}
		}
		if(j==n)
			break;
	}
	return 0;
}


int main()
{
    int n,c=0;
    scanf("%d",&n);
    char s[41];
    scanf("%s",s);
    printf("%s",s);
    n--;
    c=strlen(s)+1;
    while(n--)
    {
        scanf("%s",s);
        c+=strlen(s);
        if(c>80)
        {
            c=strlen(s)+1;
            printf("\n");
            printf("%s",s);
        }
        else
        {
            printf(" %s",s);
            c++;
        }
    }
}


char words[10000][50]={0};
int main()
{
//	freopen("in.in","r",stdin);
	int n;
	cin>>n;
	cin.get();
	int i=0;
	for (i = 0; i<n; i++)
		scanf("%s",words[i]);

	int count=0;
	int current=0;
	cout<<words[count];
	current=strlen(words[count]);
	count++;
	while(count<n)
	{
		if (current+strlen(words[count])+1 > 80)
		{
			cout<<endl<<words[count];
			current=strlen(words[count]);
		}
		else if (current+strlen(words[count])+1 == 80)
		{
			cout<<" "<<words[count]<<endl;
			current=0;
		}
		else if (current+strlen(words[count])+1 < 80)
		{
			if (current)
			{
				cout<<" ";
				current++;
			}
			cout<<words[count];
			current+=strlen(words[count]);
		}
		count++;
	}

	return 0;
}


int main()
{
	int n,i,length=0;
	char word[41];
	scanf("%d\n",&n);
	for(i=0;i<n;i++)
	{
		scanf("%s",&word);
		if(i==0)
			printf("%s",word),length=strlen(word);
		else
		{
				length+=(strlen(word)+1);
				if(length>80)
					printf("\n%s",word),length=strlen(word);
				else
					printf(" %s",word);
		}
	}
	return 0;
}


int main()
{
	int i,j,n,len,e=0;
	char word[NMAX][AMAX];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%s",word[i]);
	}
	i=0;
	while(i<n){
		len=strlen(word[i]);
		for(;len<=80&&i<n;i++){
			len+=strlen(word[i+1])+1;
		}
		printf("%s",word[e]);
		for(j=e+1;j<i;j++)
			printf(" %s",word[j]);
		e=i;
		printf("\n");

	}

}


struct sz{
	char word[41];
}*p;
int main(int argc, char* argv[])
{
	int n,i,m,add=0;
	scanf("%d",&n);
	p=(struct sz *)malloc(sizeof(struct sz)*n);
	for(i=0;i<n;i++){
		scanf("%s",&(p+i)->word);
	}
	for(i=0;i<n;i++){
		m=strlen((p+i)->word);
		if(add+m<80){
			if(add>0){
				printf(" ");
				add++;
			}
			printf("%s",(p+i)->word);
			add+=m;
		}
		else{
		printf("\n%s",(p+i)->word);
		add=m;
		}
	}
	return 0;
}


int main() {
 int n;
 char str[80];
 cin>>n;
 int ln=0;
 while(n--) {
  cin>>str;
  if (ln == 0) {
   cout<<str;
   ln=strlen(str)+1;
  }
  else if (ln+strlen(str)>80) {
   cout<<endl<<str;
   ln=strlen(str)+1;
  }
  else {
   cout<<' '<<str;
   ln += strlen(str)+1;
  }

 }
 return 0;
}


int main()
{
    int n, i, j, count;
    char a[50], b[50];
    scanf("%d", &n);
    scanf("%s", a);
    printf("%s", a);
    count=strlen(a);
    for(i=2; i<=n; i++)
    {
        scanf("%s", a);
        if(a[0]=='k')
            printf("");
        count=count+1+strlen(a);
        if(count<=80)
        {
            printf(" %s", a);
        }
        else
        {
            printf("\n%s", a);
            count=strlen(a);
        }
    }
    printf("\n");
    return 0;
}


int main()
{
	int a[81]={0},n=0,i=0;
	char s[45];
	int *p=&a[0],*q=&a[0];
	cin>>n;
	cin>>s;
	cout<<s;
	p=p+strlen(s);
	for(i=1;i<n;i++)
	{
	   cin>>s;
	   if(p+1+strlen(s)<=&a[80])
	   {
	   cout<<' '<<s;
	   p=p+1+strlen(s);
	   }
	   else
	   {
	   cout<<endl;
	   cout<<s;
	   p=q+strlen(s);
	   }
	}
	return 0;
}


main()
{
	char p[1000][30];
	int i,n=0;
	int sum[1000];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%s",p[i]);
		sum[i]=strlen(p[i]);
	}
	int count=0;
	for(i=0;i<n;i++)
	{
		if(count==0)
		{
			printf("%s",p[i]);
			count=count+sum[i];
		}
		else if(count+sum[i]<80)
		{
			printf(" %s",p[i]);
			count=count+sum[i]+1;
		}
		else if(count+sum[i]>=80)
		{
			printf("\n");
			count=sum[i];
			printf("%s",p[i]);
		}
	}
}


int n=0,len[1001]={0},sum=0;
char str[1001][101]={0};
void f(int start)
{
	int sum=0,k=0;
	if(start>n)
	{
	}
	else
	{
		cout<<str[start];
		sum=strlen(str[start]);
		for(k=start+1;k<=n;k++)
		{
			if((sum+len[k])<80)
			{
				sum+=len[k]+1;
				cout<<" "<<str[k];
			}
			else
			{
				break;
			}
		}
		start=k;
		cout<<endl;
		f(start);
	}
}
int main()
{
	cin>>n;
	for(int i=1;i<=n;i++)
	{
		cin>>str[i];
		len[i]=strlen(str[i]);
	}
	f(1);
	return 0;
}


int main()
{
	char word[300][41];
	int n, i, num[300] = {0}, *p, total = 0;
	cin >> n;
	p = num;
	for (i = 0; i < n; i++)
	{
		cin >> word[i];
		for (*(p + i) = 0; *(p + i) < 41; *(p + i) = *(p + i) + 1)
			if (word[i][*(p + i)] == '\0')
				break;
	}
	for (i = 0; i < n; i++)
	{
		if (total == 0)
		{
			total = *(p + i);
			cout << word[i];
		}
		else
		{
			total = total + *(p + i) + 1;
			if (total <= 80)
				cout << ' ' << word[i];
			else
			{
				total = *(p + i);
				cout << endl;
				cout << word[i];
			}
		}
	}
	return 0;
}


int main()
{
    int n, i, l, j, num = 0;
    char ch[45], *p;

    cin >> n;

    for(i = 0; i < n; i++)
    {
        cin >> ch;
        l = strlen(ch);
        p = ch;

        if(num == 0)
        {
            for(j = 0; j < l; j++)
            {
                cout << *p++;
                num++;
            }
        }

        else if(num > 0 && num + l + 1 <=80)
        {
            cout << " ";
            num++;

            for(j = 0; j < l; j++)
            {
                cout << *p++;
                num++;
            }
        }

        else if(num > 0 && num + 1 + l > 80)
        {
            cout << endl;
            num = l;
            for(j = 0; j < l; j++)
            {
                cout << *p++;
            }
        }
    }

    return 0;
}


int main(){
	int n,i;
	char inp[500][50];
	int len[500];
	cin>>n;
	for(i=0;i<n;i++)
	{
		cin>>inp[i];
		len[i]=strlen(inp[i]);
	}
	int l=80;
	for(i=0;i<n;i++)
	{
		if(l<len[i])
		{
			cout<<endl;
			l=80;
		}
		if(l!=80)
			cout<<" ";
		cout<<inp[i];
		l=l-1-len[i];
	}
	return 0;
}


int main(){
	int n;
	cin>>n;
	char ch[100],ch1[44];
	cin>>ch1;
	cout<<ch1;
	int sum=strlen(ch1)+1;
	for(int i=1;i<n;i++){
		cin>>ch;
		sum=sum+strlen(ch)+1;
		if(sum>81){
			cout<<endl<<ch;
			sum=strlen(ch)+1;
		}
		else
			cout<<' '<<ch;
	}
	return 0;
}


/*
 * ????.cpp
 *
 *  Created on: 2011-12-10
 *      Author: llx
 */

int main()
{
	int i,num,length,sumlen=0;//i?????num??????length??????sumlen????????
	char word[41];//????
	cin>>num;
	for(i=0;i<num;i++)
		{
		cin>>word;
		length=strlen(word);
		if (sumlen!=0)
		{
                      sumlen=sumlen+length;//????????
                      if (sumlen<79)//????????80??
                      {
                                                             cout<<" "<<word;//???????
                                                             sumlen++;//?????
                                                             continue;//?????????
                      }
                      if ((sumlen==80)||(sumlen==79))//?????80
                      {
                                                                    cout<<" "<<word<<endl;//??????
                                                                    sumlen=0;//??
                      }
                      if (sumlen>80)//????80
                      {
                                                 cout<<endl<<word;//?????
                                                 sumlen=length+1;;
                      }
		}
		else
		{
            cout<<word;
            sumlen=length+1;}
        }
		cin.get();cin.get();cin.get();cin.get();
	return 0;
}


int main()
{

int i,j,k=0,l,m,n;

char word[40];

scanf("%d",&n);

scanf("%s",word);

k=k+strlen(word)+1;

printf("%s",word);

for(i=2;i<=n;i++)

{

scanf("%s",word);

k=k+strlen(word)+1;

if(k<=81)

{

printf(" ");

printf("%s",word);

}

else

{

printf("\n%s",word);

   k=strlen(word)+1;

}

}

return 0;
}


/*1200012866 ???*/
int main(){
	int n;
	char a[50];
	cin>>n;
	cin>>a;
	int count=strlen(a)+1;
	cout<<a;
	for(int i=0;i<n-1;i++){
		cin>>a;
		if(count+strlen(a)<=80){
			cout<<' '<<a;
			count+=strlen(a)+1;
		}
		else{
			cout<<endl<<a;
			count=strlen(a)+1;
		}
	}

	return 0;
}


int main()
{
	int word_num,i,sum;
	char word[500][45];
	scanf("%d\n",&word_num);
	sum=0;
	for(i=0;i<word_num;i++)
	{
		scanf("%s",&word[i]);
	}
	for(i=0;i<word_num;i++)
	{
		if(sum==0)
		{
			printf("%s",word[i]);
			sum+=strlen(word[i]);
		}
		else
		{
			sum+=strlen(word[i])+1;
			if(sum<=80)
			{
				printf(" %s",word[i]);
			}
			else
			{
				sum=0;
				i--;
				printf("\n");
			}
		}
	}
	return 0;
}


// ??????.cpp : ??????????????
//
int main()
{
	int n;
	cin>>n;
	char word[40];
	int num=0;
	while(cin>>word)
	{
		if((num+strlen(word)+1)<80)
		{
			if(num!=0) {cout<<' ';num=num+1;}
			cout<<word;
			num=num+strlen(word);
		}
		else if((num+strlen(word)+1)==80) {cout<<' '<<word<<endl;num=0;}
		else
		{
			num=0;
			cout<<endl;
			cout<<word;
			num=num+strlen(word);
		}

	}

		return 0;
}


int main(int argc, char* argv[])
{
	int n,i,a;
	double xiaob,qingb,zhongb,laob;
	int xiao=0,qing=0,zhong=0,lao=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d", &a);
		if(a>=1&&a<=18)
			xiao++;
		else if(a>=19&&a<=35)
			qing++;
		else if(a>=36&&a<=60)
			zhong++;
		else if(a>=61)
			lao++;
	}
	xiaob=(double)xiao/n*100;
	qingb=(double)qing/n*100;
	zhongb=(double)zhong/n*100;
	laob=(double)lao/n*100;
	printf("1-18: %.2lf%%\n",xiaob);
	printf("19-35: %.2lf%%\n",qingb);
         printf("36-60: %.2lf%%\n",zhongb);
	printf("60??: %.2lf%%\n",laob);
	return 0;
}


int main()
{
	int k, i, a = 0, b = 0, c = 0, d = 0;
	cin >> k;
	double people[100];
	for (i = 1; i <= k ; i++)
	{
		cin >> people[i];
		if (people[i] <= 18) a = a + 1;
		else if (people[i] <= 35) b = b + 1;
		else if (people[i] <= 60) c = c + 1;
		else d = d + 1;
	}
	double e, f, g, h, x;
	x = k;
	e = 100 * a / x;
	f = 100 * b / x;
	g = 100 * c / x;
	h = 100 * d / x;
	cout << "1-18: " << fixed << setprecision(2) << e << "%" << endl;
	cout << "19-35: " << fixed << setprecision(2) << f << "%" << endl;
	cout << "36-60: " << fixed << setprecision(2) << g << "%" << endl;
	cout << "60??: " << fixed << setprecision(2) << h << "%" << endl;
	return 0;
}


int main()
{
	double n , i , age ;
	double a = 0 , b = 0  , c = 0 , d = 0 ;
	cin >> n ;
	for ( i = 0 ; i < n ; i++ )
	{
		cin >> age ;
		if ( age <= 18 )
		{
			a++ ;
			continue ;
		}
		if ( age > 18 && age <= 35 )
		{
			b++ ;
			continue ;
		}
		if ( age > 35 && age <=60 )
		{
			c++ ;
			continue ;
		}
		if ( age > 60 )
		{
			d++ ;
			continue ;
		}
	}
	cout << "1-18: " << fixed << setprecision(2) << a/n * 100  << "%" << endl ;
	cout << "19-35: " << fixed << setprecision(2) << b/n * 100  << "%" <<  endl ;
	cout << "36-60: " << fixed << setprecision(2) << c/n * 100  << "%" <<  endl ;
	cout << "60??: " << fixed << setprecision(2) << d/n * 100  << "%" <<  endl ;
	return 0 ;
}


int main(){
	int n;
	scanf("%d",&n);
    int bingren[100];
	double nianling[4];

	int i;
	for(i=0;i<n;i++)
	{
		scanf("%d",&bingren[i]);
	}
	for(i=0;i<4;i++)
	{
		nianling[i]=0.0;
	}
	for(i=0;i<n;i++)
	{
		if(bingren[i]<=18)
		{
			nianling[0]++;
		}
		if(bingren[i]>18&&bingren[i]<=35)
		{
			nianling[1]++;
		}
		if(bingren[i]>35&&bingren[i]<=60)
		{
			nianling[2]++;
		}
		if(bingren[i]>=61)
		{
			nianling[3]++;
		}
	}
	for(i=0;i<4;i++)
	{
		nianling[i]=nianling[i]*100/n;
	}
	printf("1-18: %.2lf%%\n",nianling[0]);
	printf("19-35: %.2lf%%\n",nianling[1]);
	printf("36-60: %.2lf%%\n",nianling[2]);
	printf("60??: %.2lf%%\n",nianling[3]);
	return 0;
}


int main(){
	int n;
	int i;
	int old[9999];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&old[i]);
	}
	int one=0,two=0,three=0,four=0;
	for(i=0;i<n;i++){
		if(old[i]>60)
			four=four+1;
		else if(old[i]>35)
			three=three+1;
		else if(old[i]>18)
			two=two+1;
		else
			one=one+1;
	}
	double onelv,twolv,threelv,fourlv;
	onelv=(double)one/n*100;
	twolv=(double)two/n*100;
	threelv=(double)three/n*100;
	fourlv=(double)four/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",onelv,twolv,threelv,fourlv);
	return 0;
}


int main()
{
	int n,i,j;
	int a[100];
	double youerbili,chengrenbili,zhongnianbili,laonianbili;
	int youer=0,chengren=0,zhongnian=0,laonian=0;
	scanf("%d", &n);
	for(i=0;i<n;i++)
		scanf("%d", &a[i]);
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)
			youer+=1;
		else if(a[i]>18&&a[i]<=35)
			chengren+=1;
		else if(a[i]>=36&&a[i]<=60)
			zhongnian+=1;
		else
			laonian+=1;
	}
	youerbili=(double)youer/(double)n*100;
	chengrenbili=(double)chengren/(double)n*100;
	zhongnianbili=(double)zhongnian/(double)n*100;
	laonianbili=(double)laonian/(double)n*100;
	printf("1-18: %.2lf%%\n",youerbili);
	printf("19-35: %.2lf%%\n",chengrenbili);
	printf("36-60: %.2lf%%\n",zhongnianbili);
	printf("60??: %.2lf%%\n",laonianbili);
	return 0;
}


int main(int argc, char *argv[])
{
	int n,i,age,one=0,two=0,three=0,four=0;
	double on,tw,th,fo;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age);
		if(age<19)	one++;
		else if(age<36)	two++;
		else if(age<61)	three++;
		else	four++;
	}
	on=(double)100*one/n;
	tw=(double)100*two/n;
	th=(double)100*three/n;
	fo=(double)100*four/n;
	printf("\n1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%",on,tw,th,fo);
	return 0;
}


void main()
{
	int n,i,age[100];
	int sum1=0;
	int sum2=0;
	int sum3=0;
	int sum4=0;
	int a,b,c,d;
	double percentage1;
	double percentage2;
	double percentage3;
	double percentage4;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&age[i]);
	for(i=0;i<n;i++)
	{
		if(age[i]<=18)
			sum1=sum1+1;
		if(age[i]<=35&&age[i]>=19)
			sum2=sum2+1;
       	if(age[i]<=60&&age[i]>=36)
			sum3=sum3+1;
        if(age[i]>=61)
			sum4=sum4+1;
	}
	    a=100*sum1;
		b=100*sum2;
		c=100*sum3;
		d=100*sum4;
        percentage1=(double)a/n;
		percentage2=(double)b/n;
		percentage3=(double)c/n;
		percentage4=(double)d/n;

	printf("1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%",percentage1,percentage2,percentage3,percentage4);
}


void main()
{
	int n,i,a[100];
    double first=0,second=0,third=0,fourth=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
	  scanf("%d",&a[i]);
	  if(a[i]<19)
	    first=first+1;
		else if(a[i]<36)
     	second=second+1;
		else if(a[i]<61)
        third=third+1;
		else fourth=fourth+1;

	}
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",first*100/n,second*100/n,third*100/n,fourth*100/n);
}


void main()
{
	int n,i;
	int a[101];
	double counta,countb,countc,countd,one=0, two=0 ,three=0, four=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)one++;
		else if(a[i]>=19&&a[i]<=35) two++;
		else if(a[i]>=36&&a[i]<=60) three++;
		else if(a[i]>=61) four++;
	}
counta=one/n*100;
countb=two/n*100;
countc=three/n*100;
countd=four/n*100;
	printf("1-18: %.2lf",counta);
	printf("%%\n");
	printf("19-35: %.2lf",countb);
	printf("%%\n");
	printf("36-60: %.2lf",countc);
	printf("%%\n");
	printf("60??: %.2lf",countd);
	printf("%%");

}


int main()
{
	int i,n,a[100];
	int count1=0,count2=0,count3=0,count4=0,sum;
	double rate1,rate2,rate3,rate4;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
    for(i=0;i<n;i++)
	{
		if(a[i]<=18)
		{
			count1++;
		}

    	if(a[i]>18&&a[i]<=35)
		{
			count2++;
		}
		if(a[i]>35&&a[i]<=60)
		{
			count3++;	}
		if(a[i]>60)
		{
			count4++;

		}

	}
 sum=count1+count2+count3+count4;
    rate1=(double)count1/sum*100;
	rate2=(double)count2/sum*100;
    rate3=(double)count3/sum*100;
    rate4=(double)count4/sum*100;
	printf ("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",rate1,rate2,rate3,rate4);
	return 0;

}


int main() {
	int n;
	cin >> n;
	int patient[100];  /* to store the age of each patient */
	int age[4] = {0, 0, 0, 0}; /* to count the number of people in each group */
	for(int i = 0; i < n; i++) {
		cin >> patient[i];
		if(patient[i] <= 18) age[0]++;
		if(patient[i] >= 19 && patient[i] <=35) age[1]++;
		if(patient[i] >= 36 && patient[i] <= 60) age[2]++;
		if(patient[i] >60) age[3]++;
	}
	double percent[4]; /* to calculate the percentage of each group */
	for(int i = 0; i < 4; i++) {
		percent[i] = (double)(age[i]) / n * 100;
	}
	cout << "1-18: ";
	printf("%.2lf",percent[0]);
	cout << '%' << endl;
	cout << "19-35: ";
	printf("%.2lf",percent[1]);
	cout << '%' << endl;
	cout << "36-60: ";
	printf("%.2lf",percent[2]);
	cout << '%' << endl;
	cout << "60??: ";
	printf("%.2lf",percent[3]);
	cout << '%' << endl;

	return 0;
}


void main()
{
	int f(int array[],int l);
	int i,m,n,t,b[26]={0};
	char str[300];
	gets(str);
	t=strlen(str);
	for(i=0;i<t;i++)
	{
		m=0;
		m=str[i]-97;
		b[m]++;
	}
	n=f(b,t);
	if(n==0)
		printf("No");
	for(i=0;i<26;i++)
	{
		if(b[i]!=0)
			printf("%c=%d\n",i+97,b[i]);
	}
}

int  f(int array[],int l)
{
	int i,word=0;
	for(i=0;i<l;i++)
	{
		if(array[i]!=0)
			word++;
	}
	return(word);
}


int main()
{
	char str[300],*ps;
	int count=0;
	scanf("%s",str);
	char i='a';
	int f = 0;
	for(i='a';i<='z';i++)
	{
		for(ps=str;*ps!='\0';ps++)
		{
			if(*ps==i)
			{   f+= 1;
				count++;
			}
		}
if(count>0){
		printf("%c=%d\n",i,count);}
   count=0;
	}
    if(f==0)
	{
		printf("No");
	}
	return 0;
}


int main(){

	char zimu[27] = "abcdefghijklmnopqrstuvwxyz";
	int num[26] = {0};

	char zfc[LEN];

	int len, i, flag;

	scanf("%s", zfc);

	len = strlen(zfc);

	for(i = 0; i < len; i++){

		if(zfc[i]-'a' >= 0 && zfc[i]-'a' <= 25){
			num[zfc[i]-'a']++;
		}

	}

	flag = 1;
	for(i = 0; i < 26; i++){
		if(num[i] != 0){
			printf("%c=%d\n", zimu[i], num[i]);
			flag = 0;
		}
	}

	if(flag){
		printf("No");
	}

	return 0;
}


int main()
{
   char str[300];
   char letter[300]="abcdefghijklmnopqrstuvwxyz";
   int num[300];
   int total=0;
   int i,j;
   for(i=0;i<26;i++){
	   num[i]=0;
   }
   int len;
   scanf("%s",str);
   len=strlen(str);
   for(i=0;i<len;i++){
       for(j=0;j<26;j++){
	       if(str[i]==letter[j])
               num[j]++;
	   }
   }
   for(i=0;i<26;i++){
	   if(num[i]>0)
	   printf("%c=%d\n",letter[i],num[i]);
   }
   for(i=0;i<26;i++){
	   total+=num[i];
   }
   if(total==0)
	   printf("No\n");
   return 0;
}


int main()
{
	int cd=0, i, a;
	char zm[300];
	char fh[53]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	int fhd[53]={0};
	scanf("%s",zm);
	for(i=0;i<52;i++){
		fhd[i]=0;
		for(a=0;a<300&&zm[a]!='\0';a++){
			if(zm[a]==fh[i]){
				fhd[i]=fhd[i]+1;
			}
		}
	}
	for(i=0;i<52;i++){
		if(fhd[i]>=1){
			printf("%c=%d\n",fh[i],fhd[i]);
			cd=1;
		}

	}
	if(cd==0){
			printf("No");
		}
	return 0;
}


int main()
{
	char str[1024];
	scanf("%s",str);

	int count['z'-'a'+1];
	for(int j=0;j<'z'-'a'+1;j++)
		count[j] = 0;

	int len = strlen(str);
	for(int i=0;i<len;i++)
		if(str[i]>='a' && str[i]<='z')
			count[str[i]-'a']++;

	int totle = 0;
	for(char c='a';c<='z';c++)
	{
		if(count[c-'a']>0)
		{
			printf("%c=%d\n",c,count[c-'a']);
			totle ++;
		}
	}

	if(totle == 0)
		printf("No\n");

	return 0;
}


void main()
{
	char a[300];
	int i, j, count, sum=0;
	gets(a);
	for(i=65; i<=90; i++)
	{
		count=0;
		for(j=0; a[j]!='\0'; j++)
			if((int)a[j]==i)
				count++;
		if(count==0) continue;
		printf("%c=%d\n", i, count);
		sum=sum+count;
	}
	for(i=97; i<=122; i++)
	{
		count=0;
		for(j=0; a[j]!='\0'; j++)
			if((int)a[j]==i)
				count++;
		if(count==0) continue;
		printf("%c=%d\n", i, count);
		sum=sum+count;
	}
	if(sum==0)
		printf("No");
}


int main()
{
	char zfc[300],*ps;
	int c=0;
	int n;
	int i=0,count=0;
	char a=97;
	char A=65;
	gets(zfc);
	while(A>=65&&A<=90)
	{
		for(ps=zfc;*ps!='\0';ps++)
			if(*ps==A)
			{
				count++;
			}
			if(count!=0)
			{
				printf("%c=%d\n",A,count);
				c=1;
			}
			count=0;
			A++;

	}
	while(a<=122&&a>=97)
	{
		for(ps=zfc;*ps!='\0';ps++)
			if(*ps==a)
			{
				count++;
			}
			if(count!=0)
			{
				printf("%c=%d\n",a,count);
				c=1;
			}
			count=0;
			a++;

	}
	if(c==0)
		printf("No");
	return 0;
}


int main()
{
	char s[1000];
	int letterN[52]={0};
	scanf("%s",s);
	int len=strlen(s);
	int i,exist=0;
	for (i=0; i<len; i++)
	{
		if (s[i]>=65&&s[i]<=90)
		{
			if (exist==0) exist=1;
			letterN[s[i]-65]++;
		}
		else if (s[i]>=97&&s[i]<=122)
		{
			if (exist==0) exist=1;
			letterN[s[i]-71]++;
		}
	}

	if (exist==0) printf("No\n");
	else
	{
		for (i=0; i<26; i++)	if (letterN[i]>0) printf("%c=%d\n",i+65,letterN[i]);
		for (i=26; i<52; i++)	if (letterN[i]>0) printf("%c=%d\n",i+71,letterN[i]);
	}

	return 0;
}


struct count
{
	int num;
	char ch;
};

int main()
{
	struct count s[53];
	int i,len,n,j;
	char str[MAX],c;
	gets(str);
	getchar();
	len=strlen(str);
	c='A';
	for (i=0;i<26;i++)
	{
		s[i].ch=c;
		c++;
	}
	c='a';
	for (i=26;i<52;i++)
	{
		s[i].ch=c;
		c++;
	}
	for (i=0;i<52;i++)
	{
		s[i].num=0;
	}
	for (i=0;i<len;i++)
	{
		if ((str[i]>='A'&&str[i]<='Z')||(str[i]>='a'&&str[i]<='z'))
			for (j=0;j<52;j++)
				if (s[j].ch==str[i])
					s[j].num++;
	}
	int flag=0;
	for (i=0;i<52;i++)
		if (s[i].num!=0)
		{
			printf("%c=%d\n",s[i].ch,s[i].num);
			flag=1;
		}
	if (flag==0)
		printf("No");
	return 0;
}


int main()
{
	char sequence[301];
	scanf("%s",sequence);
	int num=0;
	int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,none=0;
	for(num=0;sequence[num]!='\0';num++)
	{
		switch(sequence[num])
		{
		case 'a':a++;break;
		case 'b':b++;break;
		case 'c':c++;break;
        case 'd':d++;break;
        case 'e':e++;break;
		case 'f':f++;break;
		case 'g':g++;break;
        case 'h':h++;break;
        case 'i':i++;break;
		case 'j':j++;break;
		case 'k':k++;break;
        case 'l':l++;break;
        case 'm':m++;break;
		case 'n':n++;break;
		case 'o':o++;break;
        case 'p':p++;break;
        case 'q':q++;break;
		case 'r':r++;break;
		case 's':s++;break;
        case 't':t++;break;
        case 'u':u++;break;
		case 'v':v++;break;
		case 'w':w++;break;
        case 'x':x++;break;
        case 'y':y++;break;
		case 'z':z++;break;
		}

		if(sequence[num]<97 || sequence[num]>122)
		{	none++;
		///printf("%d\n",none);
		}
	}
	if(a>0)
	printf("a=%d\n",a);
	if(b>0)
    printf("b=%d\n",b);
	if(c>0)
    printf("c=%d\n",c);
	if(d>0)
	printf("d=%d\n",d);
    if(e>0)
	printf("e=%d\n",e);
    if(f>0)
	printf("f=%d\n",f);
    if(g>0)
	printf("g=%d\n",g);
    if(h>0)
	printf("h=%d\n",h);
    if(i>0)
    printf("i=%d\n",i);
    if(j>0)
    printf("j=%d\n",j);
    if(k>0)
    printf("k=%d\n",k);
    if(l>0)
	printf("l=%d\n",l);
	if(m>0)
    printf("m=%d\n",m);
	if(n>0)
    printf("n=%d\n",n);
	if(o>0)
    printf("o=%d\n",o);
	if(p>0)
	printf("p=%d\n",p);
	if(q>0)
    printf("q=%d\n",q);
	if(r>0)
    printf("r=%d\n",r);
	if(s>0)
    printf("s=%d\n",s);
	if(t>0)
	printf("t=%d\n",t);
	if(u>0)
    printf("u=%d\n",u);
	if(v>0)
    printf("v=%d\n",v);
	if(w>0)
    printf("w=%d\n",w);
	if(x>0)
	printf("x=%d\n",x);
	if(y>0)
    printf("y=%d\n",y);
	if(z>0)
    printf("z=%d\n",z);
	if(none==num)
    printf("No\n");
	return 0;
}


int main()
{
	char str[256],str2;
	int num=0,len,j,i,examine=0;
	scanf("%s",str);
	len=strlen(str);
	for(i=97;i<=122;i++)
	{
		str2=i;
		for(j=0;j<len;j++)
		{
			if(str[j]==str2)
			{
				num++;
				examine++;
			}
		}

		if(num==0)continue;
		if(examine!=0)
		{
			printf("%c=%d\n",str2,num);
		}
		num=0;
	}
	if(examine==0)
		{
			printf("No\n");
		}
	return 0;
}


int main(){
	char a[100];
	int s,i,shuliang,n;
	char weizhi;
	gets(a);
	n=strlen(a);
	int zuihou=0;
    for (s=97;s<=122;s++){
         shuliang=0;
         weizhi=s;
		for(i=0;i<n;i++){
			if(a[i]==s){
				shuliang++;
			}
		}
		if(shuliang!=0){
		printf("%c=%d\n",weizhi,shuliang);
		zuihou++;
		}
	}

	if(zuihou==0){
		printf("No");
	}
	return 0;

}


int main()
{
    int i,b[52]={0},j,k=0,t=0;
    char a[52]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",temp;
    for(i=0;i<300;i++)
    {
        scanf("%c",&temp);
        if(temp=='\n') break;
        for(j=0;j<52;j++)
        {
            if(a[j]==temp)
            {
                b[j]++;
                t=1;
            }
        }
    }
    if(t==0) printf("No\n");
    else
    for(i=0;i<52;i++)
    {
        if(b[i])
        printf("%c=%d\n",a[i],b[i]);
    }
    return 0;
}


int main()
{
	int len,i,sum[27]={0},m=0;
	char zfc[300],k;
	scanf("%s",zfc);
	len=strlen(zfc);
	for(k='a';k<='z';k++)
	{
	    for(i=0;i<len;i++)
		{
			if(k==zfc[i])
			{
				sum[m]++;
			}
		}
      if(sum[m]!=0)
	  {
	     printf("%c=%d\n",k,sum[m]);
	  }
      m++;
	}
	for(i=0;i<m-1;i++)
	{
		if(sum[i]!=0)
			goto abc;
	}
	printf("No\n");
abc: return 0;
}


void main()
{
	char zifu[300],c;
	int i,flag=0,t;
	int xiaoxie[26]={0};
	int daxie[26]={0};
	scanf("%s",&zifu);
	for (i=0; ;i++)
	{
		if (zifu[i]=='\0') break;
		else
		{
			if (zifu[i]>='a'&&zifu[i]<='z')
			{
				flag=1;
				t=zifu[i]-'a';
				xiaoxie[t]++;
			}
			if(zifu[i]>='A'&&zifu[i]<='Z')
			{
				flag=1;
				t=zifu[i]-'A';
				daxie[t]++;
			}
		}
	}
	if (flag==0)
	{
		printf("No");
	}
	else
	{
		for(i=0;i<26;i++)
		{
			if (daxie[i]!=0)
			{
				c='A'+i;
				printf("%c=%d\n",c,daxie[i]);
			}
		}
		for(i=0;i<26;i++)
		{
			if (xiaoxie[i]!=0)
			{
				c='a'+i;
				printf("%c=%d\n",c,xiaoxie[i]);
			}
		}
	}
}


int main()
{
	char a[100];
	gets(a);
	char st[53]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	int stn[52]={0};
	int i,j,lenth,flag=0;
	lenth=strlen(a);
	for(i=0;i<lenth;i++)	for(j=0;j<52;j++)	if(a[i]==st[j])	{stn[j]++;	flag=1;	break;}
	for(j=0;j<52;j++)	if(stn[j]!=0)	printf("%c=%d\n",st[j],stn[j]);
	if(flag==0)	printf("No\n");
	return 0;
}


int main()
{
    char ch, str[301];
    int i, len, no=1, counter[1000]={0};
    scanf("%s", str);
    len = strlen(str);
    for (i=0; i<len; i++) {
        ch = str[i];
        if (ch >= 'a' && ch <= 'z') {
            counter[ch-'A']++;
            no = 0;
        }
        if (ch >= 'A' && ch <= 'Z') {
            counter[ch-'A']++;
            no = 0;
        }
    }
    for (ch='A'; ch<='Z'; ch++) {
        if (counter[ch-'A'] > 0) {
            printf("%c=%d\n", ch, counter[ch-'A']);
        }
    }
    for (ch='a'; ch<='z'; ch++) {
        if (counter[ch-'A'] > 0) {
            printf("%c=%d\n", ch, counter[ch-'A']);
        }
    }
    if (no) {
        printf("No");
    }
    return 0;
}


int main()
{
	int i=0;
	char a[26]={0},b[26]={0};
	char temp=0,semp=0;
	int test=1;
	for(i=0;i<300;i++)
	{
		temp=getchar();
		semp=temp;
		if('\n'==temp)
			break;
		temp=temp-'a';
		semp=semp-'A';
		if(0<=temp&&temp<26)
			a[(int)temp]++;
		if(0<=semp&&semp<26)
			b[(int)semp]++;
	}
	for(i=0;i<26;i++)
	{
		if(b[i])
		{
			printf("%c=%d\n",('A'+i),b[i]);
			test=0;
		}
	}
	for(i=0;i<26;i++)
	{
		if(a[i])
		{
			printf("%c=%d\n",('a'+i),a[i]);
			test=0;
		}
	}
	if(test)
		printf("No\n");
	return 0;
}


int main()
{
    int i,letter[26]={0},flag=0;
    char word[400]={'@'}, num[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
    scanf("%s",word);
    for(i=0;i<400;i++)
    {
                      if(word[i]=='a')
                      letter[0]++;
                      else if(word[i]=='b')
                      letter[1]++;
                      else if(word[i]=='c')
                      letter[2]++;
                      else if(word[i]=='d')
                      letter[3]++;
                      else if(word[i]=='e')
                      letter[4]++;
                      else if(word[i]=='f')
                      letter[5]++;
                      else if(word[i]=='g')
                      letter[6]++;
                      else if(word[i]=='h')
                      letter[7]++;
                      else if(word[i]=='i')
                      letter[8]++;
                      else if(word[i]=='j')
                      letter[9]++;
                      else if(word[i]=='k')
                      letter[10]++;
                      else if(word[i]=='l')
                      letter[11]++;
                      else if(word[i]=='m')
                      letter[12]++;
                      else if(word[i]=='n')
                      letter[13]++;
                      else if(word[i]=='o')
                      letter[14]++;
                      else if(word[i]=='p')
                      letter[15]++;
                      else if(word[i]=='q')
                      letter[16]++;
                      else if(word[i]=='r')
                      letter[17]++;
                      else if(word[i]=='s')
                      letter[18]++;
                      else if(word[i]=='t')
                      letter[19]++;
                      else if(word[i]=='u')
                      letter[20]++;
                      else if(word[i]=='v')
                      letter[21]++;
                      else if(word[i]=='w')
                      letter[22]++;
                      else if(word[i]=='x')
                      letter[23]++;
                      else if(word[i]=='y')
                      letter[24]++;
                      else if(word[i]=='z')
                      letter[25]++;
    }
    for(i=0;i<26;i++)
        {
                         if(letter[i]!=0)
                         {
                                         printf("%c=%d\n", num[i],letter[i]);
                                         flag=1;
                         }
        }
    if(flag==0)
    printf("No");
    scanf("%d",&flag);
    return 0;
}


void main()
{
	char c[310];
	char d[27]={"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};
	char x[27]={"abcdefghijklmnopqrstuvwxyz"};
	int dd[27]={0};
	int xx[27]={0};
	int i,j,flag=0;
	gets(c);
	for(i=0;i<26;i++)
		for(j=0;j<strlen(c);j++){
			if(c[j]==d[i]) dd[i]+=1;
			if(c[j]==x[i]) xx[i]+=1;
		}
	for(i=0;i<26;i++)
		if(dd[i]>0) { printf("%c=%d\n",d[i],dd[i]);flag=1;}
	for(i=0;i<26;i++)
		if(xx[i]>0) { printf("%c=%d\n",x[i],xx[i]);flag=1;}
	if(flag==0)
		printf("No");

}


int time[200];
char word[400];
int len;
int main()
{
    int i,flag=1,y=1;
    gets(word);
    len=strlen(word);
    for(i=0;i<len;i++)
    time[word[i]]++;
    for(i='A';i<='z';i++)
    {
                         if((i<='Z'||i>='a')&&time[i]!=0)
                         {
                                                         if(y==0)
                                                         printf("\n");
                                                         y=0;
                                                         printf("%c=%d",i,time[i]);
                                                         flag=0;
                         }
     }
     if(flag==1)
     printf("No");

     return 0;
}


int main(void)
{
	int i,len,sumtimes=0,times[26];
	char str[300];
	gets(str);
	len=strlen(str);
	for (i=0;i<26;i++)
		times[i]=0;
	for (i=0;i<len;i++)
	{
		if (str[i]>=97&&str[i]<=122)
			times[str[i]-97]+=1;
	}
	for (i=0;i<26;i++)
	{
		if(times[i]!=0)
			printf("%c=%d\n",i+97,times[i]);
		sumtimes+=times[i];
	}
	if(sumtimes==0)
		printf("No");
}


int main()
{
    char word[500];
	gets(word);
	int a[26]={0};
	int m,i,j,sum=0;
    m=strlen(word);
	for(i=0;i<m;i++){
		for(j=0;j<26;j++){
			if(word[i] -'a'==j)
				a[j]++;
		}
	}
	char b[27]="abcdefghijklmnopqrstuvwxyz";
	for(i=0;i<26;i++){
		if(a[i]!=0){
			printf("%c=%d\n",b[i],a[i]);
		    sum++;
	}

    }
	if(sum==0)
		printf("No\n");

	return 0;
}


void main()
{
	char c[300];
	int i,j,n,count,count1=0;
	gets(c);
	n=strlen(c);
	for(i=65;i<91;i++)
	{
		count=0;
		for(j=0;j<n;j++)
		{
			if(i==c[j])
				count+=1;
		}
		if(count!=0)
		{
			printf("%c=%d\n\n",i,count);
			count1+=1;
		}
	}
	for(i=97;i<123;i++)
	{
		count=0;
		for(j=0;j<n;j++)
		{
			if(i==c[j])
				count+=1;
		}
		if(count!=0)
		{
			printf("%c=%d\n\n",i,count);
			count1+=1;
		}
	}
	if(count1==0)
		printf("No\n");
}


int main()
{
	char zfc[300];
	char zm[27]="abcdefghijklmnopqrstuvwxyz";
	int zms[26];
	int i,j,n,m=1;
	scanf("%s",zfc);
	n = strlen (zfc);
	for(i=0;i<26;i++)
	{
		zms[i]=0;
	}
	for(i=0;i<26;i++)
	{
		for(j=0;j<n;j++)
		{
			if(zfc[j]==zm[i])
			{
				zms[i]++;
			}
		}
	}
	for(i=0;i<26;i++)
	{
		if(zms[i]!=0)
		{
		    m=0;
                      printf("%c=%d\n",zm[i],zms[i]);
		}
	}
         if(m==1)
         {
             printf("No");
         }
	return 0;
}


int main()
{
	char ss[302]="0",
		zimu[27]="abcdefghijklmnopqrstuvwxyz";
	int count=0,s=0;
	scanf("%s",ss);
	int n=strlen(ss);
	for(int j=0;j<=27;j++)
	{
	      for(int i=0;i<n;i++)
		  {
			  if(ss[i]==zimu[j])
			  {
				  count+=1;
			  }

		  }if(count!=0)
			  {
				  printf("%c=%d\n",zimu[j],count);

			  }
			  if( count==0)
			  {s+=1;
				  continue;}
count=0;

		  }
	if(s==28)
		printf("No");
	return 0;
}


void main()
{
	char a[300];
	int i,n,letter[26],total=0;
	gets(a);
	n=strlen(a);
	for(i=0;i<=25;i++)
		letter[i]=0;
	for(i=0;i<=n-1;i++)
		if(a[i]>='a'&&a[i]<='z')
			letter[a[i]-'a']++;
	for(i=0;i<=25;i++)
		if(letter[i]>0)
		{
			printf("%c=%d\n",i+'a',letter[i]);
			total++;
		}
	if(total==0)
		printf("No");
	getchar();
	getchar();
}


int main ()

{
	char st[300];
	char num[]="abcdefghijklmnopqrstuvwxyz";
	int i,n,j;
	int sum[30]={0};
	int total1=0,total2=0;
	gets (st);
	n=strlen(st);
	for (i=0;i<n;i++)
	{
		for (j=0;j<26;j++){
			if (st[i]==num[j])
				sum[j]++;
			total1+=sum[j];
		}
		total2+=total1;
	}
	if (total2==0)
		printf ("No");
	else

	for (j=0;j<26;j++){
		if(sum[j]!=0){
	printf("%c",num[j]);
	printf ("=%d\n",sum[j]);
		}
		}
	return 0;
}


int main()
{
	char zfc[300],* ps;
	scanf("%s",zfc);
	int count;
	int zimushu=0;
	for(char ZM='A';ZM<='Z';ZM++)
	{
		count=0;
		for(ps=zfc;*ps!='\0';ps++)
		{
			if(*ps==ZM) count++;
		}
        if(count!=0)
		{
			printf("%c=%d\n",ZM,count);
			zimushu++;

		}

	}
    for(char zm='a';zm<='z';zm++)
	{
		count=0;
		for(ps=zfc;*ps!='\0';ps++)
		{
			if(*ps==zm) count++;
		}
        if(count!=0)
		{
			printf("%c=%d\n",zm,count);
			zimushu++;

		}

	}

	if (zimushu==0)
	{
		printf("No");
	}
	return 0;
}


int main()
{
    struct counter
    {
           int counter;
    }zm[52];
    char s[301];
    int len,i,j,counter=0;
    scanf("%s",s);
    len=strlen(s);
    for(i=0;i<52;i++)
    zm[i].counter=0;
    for(i=0;i<len;i++)
    {
                      if(s[i]>=97&&s[i]<=122)
                      {
                                             counter++;
                                             zm[(s[i]-97)].counter++;
                      }
                      else if(s[i]>=65&&s[i]<=90)
                      {
                           counter++;
                           zm[(s[i]-65+26)].counter++;
                      }
    }
    if(counter==0)
    printf("No");
    for(i=26;i<52;i++)
    {
                      if(zm[i].counter>0)
                      printf("%c=%d\n",i+(65-26),zm[i].counter);
    }
    for(i=0;i<26;i++)
    {
                      if(zm[i].counter>0)
                      printf("%c=%d\n",i+97,zm[i].counter);
    }
    return 0;
}


int main()
{ char str[300],word[300],p;
  int i,k=0,len,num[300]={0},j,t,check=0;
   scanf("%s",str);

   len=strlen(str);

   for(i=0;i<len;i++)
	   if(str[i]>='a'&&str[i]<='z')
		{   word[k]=str[i];check=1;
		for(j=i+1;j<len;j++)
		if(str[i]==str[j]) {str[j]=0;num[k]=num[k]+1;}
		k++;
		}

   for(i=0;i<k-1;i++)
	   for(j=i+1;j<k;j++)
		if(word[i]>word[j])
			{p=word[i];word[i]=word[j];word[j]=p;
		  t=num[i];num[i]=num[j];num[j]=t;
			}
   for(i=0;i<k;i++)
	   printf("%c=%d\n",word[i],(num[i]+1));
   if(check==0) printf("No");
   return 0;

}


int main()
{
	char a[300]={'\0'},c[53]={"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"};
	int b[52]={0},i,j,length,sum=0;
	gets(a);
	length=strlen(a);
	for(j=0;j<52;j++)
	{
		for(i=0;i<length;i++)
		{
			if(a[i]==c[j])
			{
				b[j]+=1;
				sum+=1;
			}
		}

	}
	if(sum==0)
		printf("No");
	else
	{
		for(i=0;i<52;i++)
		{
			if(b[i]!=0)
				printf("%c=%d\n",c[i],b[i]);
		}
	}
	return 0;
}


int main(){
int i,j,g,a=0;
char m[301],n[27]="abcdefghijklmnopqrstuvwxyz";
cin>>m;
for(j=0;j<26;j++){
    g=0;
    for(i=0;i<strlen(m);i++){
        if(m[i]==n[j]){
            g++;}}
    if(g>0){
    cout<<n[j]<<'='<<g<<endl;
a++;}}                                                                         if(a==0) cout<<"No"<<endl;

return 0;
}


int main()
{
	int length;
	char a[300];
	char zimu='a';
	int i,j;
	int cishu[26]={0},zero=0;

	scanf("%s",a);
	length=strlen(a);

	for(i=0;i<length;i++)
	{	zimu='a';
		for(j=0;j<26;j++)
		{
			if(a[i]==zimu)
			{
				cishu[j]++;
				break;
			}
			else
			{
				zimu++;
			}

		}
	}

	zimu='a';
	for(j=0;j<26;j++)
	{
		if(cishu[j]!=0)
		{
			printf("%c=%d\n",zimu,cishu[j]);
		}

		zimu++;
	}

	for(j=0;j<26;j++)
	{
		if(cishu[j]==0)
		{
			zero++;
		}
	}

	if(zero==26)
	{
		printf("No");
	}

	return 0;
}


int main()
{
   char z[300];
   int sum,i,num=0;

   char n;
   gets(z);
   for(n='a';n<='z';n++)
   {
	   sum=0;
	   for(i=0;i<strlen(z);i++)
	   {
		   if(z[i]==n)
		   {
			   sum++;
		   }

		   num+=sum;
	   }
       if(sum!=0)
		   {
			   printf("%c=%d\n",n,sum);
		   }
   }
   if(num==0)
   {
	   printf("No");
   }

   return 0;

}


void main()
{
	char s[301],j;
	int i,l,sum1[26]={0},sum2[26]={0};
	gets(s);
	l=strlen(s);
	for(i=0;i<l;i++)
	{
		switch(s[i])
		{
		case'A':sum1[0]++;break;
		case'B':sum1[1]++;break;
		case'C':sum1[2]++;break;
		case'D':sum1[3]++;break;
		case'E':sum1[4]++;break;
		case'F':sum1[5]++;break;
		case'G':sum1[6]++;break;
		case'H':sum1[7]++;break;
		case'I':sum1[8]++;break;
		case'J':sum1[9]++;break;
		case'K':sum1[10]++;break;
		case'L':sum1[11]++;break;
		case'M':sum1[12]++;break;
		case'N':sum1[13]++;break;
		case'O':sum1[14]++;break;
		case'P':sum1[15]++;break;
		case'Q':sum1[16]++;break;
		case'R':sum1[17]++;break;
		case'S':sum1[18]++;break;
		case'T':sum1[19]++;break;
		case'U':sum1[20]++;break;
		case'V':sum1[21]++;break;
		case'W':sum1[22]++;break;
		case'X':sum1[23]++;break;
		case'Y':sum1[24]++;break;
		case'Z':sum1[25]++;break;
		case'a':sum2[0]++;break;
		case'b':sum2[1]++;break;
		case'c':sum2[2]++;break;
		case'd':sum2[3]++;break;
		case'e':sum2[4]++;break;
		case'f':sum2[5]++;break;
		case'g':sum2[6]++;break;
		case'h':sum2[7]++;break;
		case'i':sum2[8]++;break;
		case'j':sum2[9]++;break;
		case'k':sum2[10]++;break;
		case'l':sum2[11]++;break;
		case'm':sum2[12]++;break;
		case'n':sum2[13]++;break;
		case'o':sum2[14]++;break;
		case'p':sum2[15]++;break;
		case'q':sum2[16]++;break;
		case'r':sum2[17]++;break;
		case's':sum2[18]++;break;
		case't':sum2[19]++;break;
		case'u':sum2[20]++;break;
		case'v':sum2[21]++;break;
		case'w':sum2[22]++;break;
		case'x':sum2[23]++;break;
		case'y':sum2[24]++;break;
		case'z':sum2[25]++;break;
		}
	}
	for(j=i=0;i<26;j++,i++)
	{
		if(sum1[i])
			printf("%c=%d\n",65+j,sum1[i]);
	}
	for(j=i=0;i<26;j++,i++)
	{
		if(sum2[i])
			printf("%c=%d\n",97+j,sum2[i]);
	}
	for(i=0;i<26;i++)
		if(sum1[i]==0&&sum2[i]==0);
		else break;
	if(i==26) printf("No\n");
}


int main()
{  char str[300];
   scanf("%s",str);
   int len;
   len=strlen(str);
   int count=0,i,j;
   for(i=0;i<len;i++)
  {  if(str[i]>='a'&& str[i]<='z')
     count++;
   }
     if(count==0)
   printf("No");
     else for(j=97;j<=122;j++)
  {  int n=0;
     for(i=0;i<len;i++)
     { if(str[i]==j)
        n++;
      }
     char a;
     a=(char)j;
     if (n!=0)
     printf("%c=%d\n", a,n);

   }

    return 0;
}


int main()
{
	char zimu[]="abcdefghijklmnopqrstuvwxyz",str[300];
	int i,j,a[26]={0},n,q=0;
	scanf("%s",str);
	n=strlen(str);
	for(i=0;i<26;i++)
	{
		for(j=0;j<n;j++)
		{
			if(str[j]==zimu[i])
				a[i]=a[i]+1;
		}
	}
	for(i=0;i<26;i++)
	{
		if(a[i]!=0)
		{
			printf("%c=%d\n",zimu[i],a[i]);
			q=1;
		}

	}
	if(q==0)
		printf("No");
	return 0;
}


int main()
{
    int i,n,j,b;
    char word[300];
    char ti[28]="abcdefghijklmnopqrstuvwxyz";
    int a[26]={0};
    b=0;
    scanf("%s",word);
    n=(int)strlen(word);
    for(i=0;i<n;i++)
    {
        for(j=0;j<26;j++)
        {
            if(word[i]==ti[j])
            {
                a[j]=a[j]+1;
            }
        }
    }
    for(j=0;j<26;j++)
    {
        if(a[j]!=0)
        {
            printf("%c=%d\n",ti[j],a[j]);
        }
        b=b+a[j];
    }
    if(b==0)
    {
        printf("No");
    }
    return 0;
}


int main()
{
	int b[60]={0};
	char a[300];
	char *p=a;
	scanf("%s",a);
	for(;*p!='\0';p++)
	{
		for(int o=65;o<=90;o++){
			if(*p==o) b[o-65]++;
		}
        for(int q=97;q<=122;q++){
			if(*p==q) b[q-71]++;
        }
	}
	int i,n=0;
	char g[60]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",*s;
	s=g;
	for(i=0;i<52;i++,s++)
	{
		char v;
		v=*s;
		if(b[i]!=0)
		{
			printf("%c=%d\n",v,b[i]);
			n++;
		}

	}
	if(n==0)
        printf("No\n");
	return 0;
}


main()
{
	char init[300];
	int letter[27]={0};
	int i;
	int t=0;
	gets(init);
for(i=0;i<=strlen(init);i++)
switch(init[i])
{
case'a' : letter[1]++;break;
case'b' : letter[2]++;break;
case'c' : letter[3]++;break;
case'd' : letter[4]++;break;
case'e' : letter[5]++;break;
case'f' : letter[6]++;break;
case'g' : letter[7]++;break;
case'h' : letter[8]++;break;
case'i' : letter[9]++;break;
case'j' : letter[10]++;break;
case'k' : letter[11]++;break;
case'l' : letter[12]++;break;
case'm' : letter[13]++;break;
case'n' : letter[14]++;break;
case'o' : letter[15]++;break;
case'p' : letter[16]++;break;
case'q' : letter[17]++;break;
case'r' : letter[18]++;break;
case's' : letter[19]++;break;
case't' : letter[20]++;break;
case'u' : letter[21]++;break;
case'v' : letter[22]++;break;
case'w' : letter[23]++;break;
case'x' : letter[24]++;break;
case'y' : letter[25]++;break;
case'z' : letter[26]++;break;
}
if(letter[1]!=0) {printf("a=%d\n",letter[1]);t++;}
if(letter[2]!=0) {printf("b=%d\n",letter[2]);t++;}
if(letter[3]!=0) {printf("c=%d\n",letter[3]);t++;}
if(letter[4]!=0) {printf("d=%d\n",letter[4]);t++;}
if(letter[5]!=0) {printf("e=%d\n",letter[5]);t++;}
if(letter[6]!=0) {printf("f=%d\n",letter[6]);t++;}
if(letter[7]!=0) {printf("g=%d\n",letter[7]);t++;}
if(letter[8]!=0) {printf("h=%d\n",letter[8]);t++;}
if(letter[9]!=0) {printf("i=%d\n",letter[9]);t++;}
if(letter[10]!=0) {printf("j=%d\n",letter[10]);t++;}
if(letter[11]!=0) {printf("k=%d\n",letter[11]);t++;}
if(letter[12]!=0) {printf("l=%d\n",letter[12]);t++;}
if(letter[13]!=0) {printf("m=%d\n",letter[13]);t++;}
if(letter[14]!=0) {printf("n=%d\n",letter[14]);t++;}
if(letter[15]!=0) {printf("o=%d\n",letter[15]);t++;}
if(letter[16]!=0) {printf("p=%d\n",letter[16]);t++;}
if(letter[17]!=0) {printf("q=%d\n",letter[17]);t++;}
if(letter[18]!=0) {printf("r=%d\n",letter[18]);t++;}
if(letter[19]!=0) {printf("s=%d\n",letter[19]);t++;}
if(letter[20]!=0) {printf("t=%d\n",letter[20]);t++;}
if(letter[21]!=0) {printf("u=%d\n",letter[21]);t++;}
if(letter[22]!=0) {printf("v=%d\n",letter[22]);t++;}
if(letter[23]!=0) {printf("w=%d\n",letter[23]);t++;}
if(letter[24]!=0) {printf("x=%d\n",letter[24]);t++;}
if(letter[25]!=0) {printf("y=%d\n",letter[25]);t++;}
if(letter[26]!=0) {printf("z=%d\n",letter[26]);t++;}

if(t==0) printf("No\n");
}


int main()
{
    int leap=0,i,j;
    char s[301];
    int b[60]={0};
    char z[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
    gets(s);
    for(i=0;s[i]!='\0';i++)
    {
         if(s[i]>='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z')
         for(j=0;j<52;j++)
         {
                          leap=1;
             if(s[i]==z[j])
             b[j]++;
         }
    }
    if(leap==0)
    printf("No");
    else
    {
       for(i=0;i<52;i++)
       {
        if(b[i]!=0)
        printf("%c=%d\n",z[i],b[i]);
       }
    }
}


void main()
{
	int group=0,i,num[26],maxc,max;
	char string[1000],*p;

	scanf("%s",string);
	for (i=0;i<=25;i++)
		num[i]=0;
	for (p=string;*p!='\0';p++)
		num[*p-'a']++;

	for (i=0;i<=25;i++)
		if (num[i]!=0)
		{
			printf("%c=%d\n",i+'a',num[i]);
			group=group+num[i];}
	if (group==0)
		printf("No\n");

}


int main()
{
	char zfc[300],mi;
	int sz[256]={0},in;
	scanf("%s",zfc);
    for(in=0;in<300;in++){
		mi=zfc[in];
		sz[mi]++;
		if(zfc[in]=='\0'){
			break;
		}
	}
	int Flag=0;
	for(int kt=65;kt<=90;kt++){
		if(sz[kt]!=0){
			printf("%c=%d\n",kt,sz[kt]);
			Flag=1;
		}
	}
	for(int akt=97;akt<=122;akt++){
		if(sz[akt]!=0){
			printf("%c=%d\n",akt,sz[akt]);
			Flag=1;
		}
	}
	if(Flag==0){
		printf("No");
	}
	return 0;
}


void main()
{
	char letter[300];
	gets(letter);
	int len=strlen(letter);
	int judge=0;
	char CH='A';
	for(CH='A';CH<='Z';CH++)
	{
		int i=0;
		int num1=0;
        for(i=0;i<len;i++)
		{
            if(letter[i]==CH)
			{
				num1+=1;
			}
			if(i==len-1&&num1!=0)
			{
				judge+=1;
				printf("%c=%d\n",CH,num1);
				num1=0;
			}
		}
	}
	char ch='a';
	for(ch='a';ch<='z';ch++)
	{
		int j=0;
		int num2=0;
        for(j=0;j<len;j++)
		{
            if(letter[j]==ch)
			{
				num2+=1;
			}
			if(j==len-1&&num2!=0)
			{
				judge+=1;
				printf("%c=%d\n",ch,num2);
				num2=0;
			}
		}
	}
    if(judge==0)
	{
		printf("No");
	}
}


void main()
{
	int count[128]={0},i,c,b=0;
	c=getchar();
	while(c!='\n')
	{
		count[c]++;
		c=getchar();
	}
	for(i='A';i<='Z';i++)
	if(count[i])
	{
		printf("%c=%d\n",i,count[i]);
		b=1;
	}
	for(i='a';i<='z';i++)
	if(count[i])
	{
		printf("%c=%d\n",i,count[i]);
		b=1;
	}
	if(!b) printf("No");
}


int main()
{
char str[300];
int sz[26];
int i,len,noprint=1;
     for(i=0;i<26;i++)
            {
          sz[i]=0;
             }
scanf("%s",str);
len=strlen(str);
      for(i=0;i<len;i++)
         {
     if(str[i]>=97&&str[i]<=122)
            {
            sz[str[i]-97]++;
             }
          }
     for(i=0;i<26;i++)
     {
     if(sz[i]>0)
           {
            noprint=0;
            printf("%c=%d\n",i+97,sz[i]);
            }
      }
    if(noprint){printf("No");}
return 0;
}


int main(){
    char ci[300],*ps;
    scanf("%s",ci);
    int a=strlen(ci);
    int sum0=0;
    for(int i='A';i<='z';i++){
            char zimu;
            int sum=0;
            for(ps=ci;ps<ci+a;ps++){
                    if(*ps==i&&(*ps<='Z'||*ps>='a')){
                               sum++;
                               sum0++;
                               }
                               }
            zimu=i;
            if(sum!=0){
                       printf("%c=%d\n",zimu,sum);
            }
    }
    if(sum0==0){
               printf("No");
               }
    return 0;
}


int main()
{
	char str[100],a[27]="abcdefghijklmnopqrstuvwxyz";
	gets(str);
	int i,j,k=0,sum=0;
	int len,num[100]={0};
	len=strlen(str);
	for(i=1;i<=26;i++)
	{
		for(j=1;j<=len;j++)
		{
			if(a[i-1]==str[j-1])
				num[i-1]++;
		}
	}
	for(i=1;i<=26;i++)
	{
		sum+=num[i-1];

	}

	if(sum==0) printf("No");
	else
	{
		for(i=1;i<=26;i++)
		{
			sum+=num[i-1];
			if(num[i-1]>0)
			printf("%c=%d\n",a[i-1],num[i-1]);
		}
	}
	return 0;
}


int main(){
	int i,j,p,q,len;
    char mark[301];
	scanf("%s",mark);
	len=strlen(mark);
	for(p=len-1;p>0;p--){
		for(q=0;q<p;q++){
			if(mark[q]>mark[q+1]){
				char a;
				a=mark[q];
				mark[q]=mark[q+1];
				mark[q+1]=a;
			}
		}
	}
	int judge=0;
	for(i=0;i<len;i++){
		if(mark[i]>=97&&mark[i]<=122){
			judge++;
			int n=1;
            for(j=i+1;j<len;j++){
				if(mark[j]==mark[i]){
					n++;
					mark[j]=0;
				}
			}
			if(n!=0)
				printf("%c=%d\n",mark[i],n);
		}
	}
	if(judge==0)
		printf("No\n");
	return 0;
}


int main(int argc, char* argv[])
{
	char *ps,str[300],i;
    int count=0;
	scanf("%s",str);
    for(ps=str;*ps!='\0';ps++)
    {
         if(*ps>='a'&&*ps<='z')
         count++;
    }
         if(count==0)
         printf("No");
         else
         {
             for(i='a';i<='z';i++)
             {
                 count=0;
                 for(ps=str;*ps!='\0';ps++)
                 if(*ps==i)
                 count++;
                 if(count!=0)
                 printf("%c=%d\n",i,count);
             }
         }
      return 0;

}


void main()
{
	char str[301];
	int num[26]={0},i,len,n=0;
	scanf("%s",str);
	len=strlen(str);
	for (i=0;i<len;i++)
		if (str[i]>='a'&&str[i]<='z')
		{
			num[str[i]-'a']=num[str[i]-'a']+1;
			n=1;
		}
	if (n==1)
	    for (i=0;i<26;i++)
			if (num[i]!=0)
				printf("%c=%d\n",i+'a',num[i]);
			else;
	else printf("No\n");
}


int main()
{
	char zfc[301];
	gets(zfc);
	int i,j;
	int count;
	int len=strlen(zfc);
	char zf;
	int first=1;
	for(i=65;i<=90;i++){
		zf=i;
		count=0;
		for(j=0;j<len;j++){
			if(zfc[j]==i){
				count++;
			}
		}
		if(count!=0&&first==1){
			printf("%c=%d",zf,count);
			first=0;
		}
		else if(count!=0&&first==0){
			printf("\n%c=%d",zf,count);
		}
	}
	for(i=97;i<=122;i++){
		zf=i;
		count=0;
		for(j=0;j<len;j++){
			if(zfc[j]==i){
				count++;
			}
		}
		if(count!=0&&first==1){
			printf("%c=%d",zf,count);
			first=0;
		}
		else if(count!=0&&first==0){
			printf("\n%c=%d",zf,count);
		}
	}
	if(first==1){
		printf("No");
	}
	return 0;
}


int main(int argc, char argv[])
{
	char cArray[300], ch;
	int i,j;
	int len;
	int Cap1[26];
	int Cap2[26];
	int flag=0;

	for(i=0; i<26; i++)
	{
		Cap1[i]=0;
		Cap2[i]=0;
	}

	gets(cArray);

	len=strlen(cArray);

	//for(i=0; i<len; i++)

	for(i=0; i<len; i++)
	{
		ch=cArray[i];
		if(ch>='A' && ch<='Z')
		{
			Cap1[ch-'A']++;
			flag++;
		}
		else if(ch>='a' && ch<='z')
		{
			Cap2[ch-'a']++;
			flag++;
		}
	}

	if(flag>0)
	{
	for(i=0; i<26; i++)
	{
		if(Cap1[i]>0)
			printf("%c=%d\n", 'A'+i, Cap1[i]);
	}
	for(i=0; i<26; i++)
	{
		if(Cap2[i]>0)
			printf("%c=%d\n", 'a'+i, Cap2[i]);
	}
	}
	else
		printf("No\n");

	return 0;
}


int main(){
	char w[53]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	char a[300];
	int num[52]={0},i,j;
	int flag=0;
		memset(a,0,300);
	scanf("%s",a);

	for(i=0;i<300;i++){
		for(j=0;j<52;j++){
			if(a[i]==w[j]){
				num[j]++;
			}
		}
	}
	for(j=0;j<52;j++){
		if(num[j]!=0){
			printf("%c=%d\n",w[j],num[j]);
			flag=1;
		}
	}
	if(flag==0){
		printf("No");
	}
	return 0;
}


int main()
{
	char str[300];
	int suma=0,sumb=0,sumc=0,sumd=0,sume=0,sumf=0,sumg=0,sumh=0,sumi=0,
	sumj=0,sumk=0,suml=0,summ=0,sumn=0,sumo=0,sump=0,sumq=0,sumr=0,
sums=0,sumt=0,sumu=0,sumv=0,sumw=0,sumx=0,sumy=0,sumz=0,len,i;
	scanf("%s",str);
	len= strlen(str);
	for(i=0;i<len;i++){
		if(str[i]=='a') suma++;
	}
		if(suma!=0) printf("a=%d\n",suma);

    for(i=0;i<len;i++){
		if(str[i]=='b') sumb++;
	}
		if(sumb!=0) printf("b=%d\n",sumb);
for(i=0;i<len;i++){
		if(str[i]=='c') sumc++;
	}
		if(sumc!=0) printf("c=%d\n",sumc);
for(i=0;i<len;i++){
		if(str[i]=='d') sumd++;
	}
		if(sumd!=0) printf("d=%d\n",sumd);
for(i=0;i<len;i++){
		if(str[i]=='e') sume++;
	}
		if(sume!=0) printf("e=%d\n",sume);
for(i=0;i<len;i++){
		if(str[i]=='f') sumf++;
	}
		if(sumf!=0) printf("f=%d\n",sumf);
for(i=0;i<len;i++){
		if(str[i]=='g') sumg++;
	}
		if(sumg!=0) printf("g=%d\n",sumg);
for(i=0;i<len;i++){
		if(str[i]=='h') sumh++;
	}
		if(sumh!=0) printf("h=%d\n",sumh);
for(i=0;i<len;i++){
		if(str[i]=='i') sumi++;
	}
		if(sumi!=0) printf("i=%d\n",sumi);
for(i=0;i<len;i++){
		if(str[i]=='j') sumj++;
	}
		if(sumj!=0) printf("j=%d\n",sumj);
for(i=0;i<len;i++){
		if(str[i]=='k') sumk++;
	}
		if(sumk!=0) printf("k=%d\n",sumk);
for(i=0;i<len;i++){
		if(str[i]=='l') suml++;
	}
		if(suml!=0) printf("l=%d\n",suml);
for(i=0;i<len;i++){
		if(str[i]=='m') summ++;
	}
		if(summ!=0) printf("m=%d\n",summ);
for(i=0;i<len;i++){
		if(str[i]=='n') sumn++;
	}
		if(sumn!=0) printf("n=%d\n",sumn);
for(i=0;i<len;i++){
		if(str[i]=='o') sumo++;
	}
		if(sumo!=0) printf("o=%d\n",sumo);
for(i=0;i<len;i++){
		if(str[i]=='p') sump++;
	}
		if(sump!=0) printf("p=%d\n",sump);
for(i=0;i<len;i++){
		if(str[i]=='q') sumq++;
	}
		if(sumq!=0) printf("q=%d\n",sumq);
for(i=0;i<len;i++){
		if(str[i]=='r') sumr++;
	}
		if(sumr!=0) printf("r=%d\n",sumr);
for(i=0;i<len;i++){
		if(str[i]=='s') sums++;
	}
		if(sums!=0) printf("s=%d\n",sums);
for(i=0;i<len;i++){
		if(str[i]=='t') sumt++;
	}
		if(sumt!=0) printf("t=%d\n",sumt);
for(i=0;i<len;i++){
		if(str[i]=='u') sumu++;
	}
		if(sumu!=0) printf("u=%d\n",sumu);
for(i=0;i<len;i++){
		if(str[i]=='v') sumv++;
	}
		if(sumv!=0) printf("v=%d\n",sumv);
for(i=0;i<len;i++){
		if(str[i]=='w') sumw++;
	}
		if(sumw!=0) printf("w=%d\n",sumw);
for(i=0;i<len;i++){
		if(str[i]=='x') sumx++;
	}
		if(sumx!=0) printf("x=%d\n",sumx);
for(i=0;i<len;i++){
		if(str[i]=='y') sumy++;
	}
		if(sumy!=0) printf("y=%d\n",sumy);
for(i=0;i<len;i++){
		if(str[i]=='z') sumz++;

}
		if(sumz!=0) printf("z=%d\n",sumz);

		if(suma==0&&sumb==0&&sumc==0&&sumd==0&&sume==0&&sumf==0&&sumg==0&&
			sumh==0&&sumi==0&&sumj==0&&sumk==0&&suml==0&&summ==0&&sumn==0&&sumo==0&&
			sump==0&&sumq==0&&sumr==0&&sums==0&&sumt==0&&sumu==0&&sumv==0&&sumw==0&&
			sumx==0&&sumy==0&&sumz==0)
        printf("No");

	return 0;
}


void main()
{
	char string[300];
	int num[26]={0},i,j=0,len,flag=0;
	gets(string);
	len=strlen(string);
	for(j=0;j<len;j++)
		for(i=0;i<26;i++)
		if(string[j]==i+'a')
		{
			num[i]++;break;
		}
	for(i=0;i<26;i++)
		if(num[i]!=0)
		{
			printf("%c=%d\n",i+'a',num[i]);
			flag=1;
		}
	if(flag==0) printf("No");
}


int main()
{
	char zfc[301];
	char zm[53]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	int number[52];
	int p=0,k=0;
	gets(zfc);
	int i;
	for (i=0;i<52;i++)
	{
		number[i]=0;
		for(k=0;zfc[k]!='\0';k++)
		{
			if(zfc[k]==zm[i])
			{
				number[i]++;
			}
		}
	}
	for(i=0;i<52;i++)
	{
		if(number[i]!=0)
		{
			p=1;
			printf("%c=%d\n",zm[i],number[i]);
		}
	}
	if(p==0)
	{
		printf("No");
	}
	return 0;
}


int main(){
	char zf[301],zm[53]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	gets(zf);
	int n;
		n=strlen(zf);
	int sz[52];
	for(int k=0;k<52;k++){
		sz[k]=0;
	}
	int a,m;
	for(a=0;a<n;a++){
		for(m=0;m<52;m++){
			if(zf[a]==zm[m]){
				sz[m]++;
			}
		}
	}
	int c=0,b;
	for(b=0;b<52;b++){
	   if(sz[b]!=0){
			   printf("%c",zm[b]);
			   printf("=%d\n",sz[b]);
			   c++;
		   }
	}
	if(c==0){
		   printf("No");
	}
	   return 0;
}


void main()
{
        int i,j;
        char b[301];
        char c[27]="abcdefghijklmnopqrstuvwxyz";
        int d[26]={0};

        gets(b);

        for(i=0;i<strlen(b);i++)

                for(j=0;j<26;j++)
                        if(b[i]==c[j])d[j]++;

            j=0;
                        for(i=0;i<26;i++)
                                if(d[i]>0){printf("%c=%d\n",c[i],d[i]);
                                j++;}
                                if(j==0)printf("No");

        }


int main()
{
	char str[301],cha[26]={0},flag;
	int i,len,l;
	scanf("%s",str);
	l=strlen(str);
	for(i=0;i<l;i++){
		if(str[i]>='a'&&str[i]<='z')
			cha[str[i]-97]++;
	}

	flag = 0;
	for(i=0;i<26;i++){
		if(cha[i]){
			printf("%c=%d\n",i+97,cha[i]);
			flag = 1;
		}
	}
	if(flag==0)
		printf("No\n");

	return 0;
}


void main()
{
	char a[300];
	int sum,i,j,k=1;
	gets(a);
	for(j='a';j<='z';j++)
	{
		sum=0;
		for(i=0;i<strlen(a);i++)
			if(a[i]==j) sum++;
		if(sum)
		{
			printf("%c=%d\n",j,sum);
			k=0;
		}
	}
	if(k) printf("No");
}


int main(){
	int i,j,n,k;
	char sz[300];
	char cz[53]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	scanf("%s",sz);
	n=strlen(sz);

	for(j=0;j<52;j++)
	{
		k=0;
		{
			for(i=0;i<n;i++)
				if(cz[j]==sz[i]) k++;
		}
		if(k>0) printf("%c=%d\n",cz[j],k);

	}
	for(i=0,k=0;i<n;i++)
		if(sz[i]<65||sz[i]>123) k++;
		if(k==n) printf("No\n");
       return 0;
}


int store(char str[],char sto[],int len)
{
	int i,m=0;
	for(i=0;i<len;i++)
		if(  str[i]>='a'  &&  str[i]<='z'  )
		{sto[m]=str[i];
		m++;}
	return (m);
}
void sort(char sto[],int m)
{
	int i,j,k;
	char t;
	for(i=0;i<m-1;i++)
	{k=i;
		for(j=i+1;j<m;j++)
			if(sto[j]<sto[k]) k=j;
		if(k!=i)
		{ t=sto[i];
		sto[i]=sto[k];
		sto[k]=t; }
	}
}

int count(char sto[],char newstr[26],int m,int time[100])
{
	int i,j,flag;
	int k=0;
	for(i=0;i<m;i++)
	{flag=1;
		for(j=0;j<=k;j++)
		{
			if(newstr[j]==sto[i])//??????????
			{time[j]++;
			flag=0;
			break;}
		}
		if(flag) {newstr[k]=sto[i];
		time[k]++;
		k++;}//??????????????
	}
	return (k);
}
void output(char newstr[26],int time[100],int k)
{
	int i;
	for(i=0;i<k;i++)
		printf("%c=%d\n",newstr[i],time[i]);
}
void main()
{
	char str[300],sto[300]={'\0'},newstr[26]={'\0'};
	int time[100]={0},len,temp;
	gets(str);
	len=strlen(str);
	temp=store(str,sto,len);
	if(temp==0) printf("No\n");
	else{
	sort(sto,temp);
	temp=count(sto,newstr,temp,time);
	output(newstr,time,temp);
	}
}