#include<iostream>
using namespace std;
int main()
{
char str[10];
cout<<"请输入字符串"<<endl;
int j=0;
for(j=0;j<10;j++){
cin>>str[j];
}
char i;
int a[26]={0};
int b[26]={0};
for(i='A';str[j]!='\0';j++)
{
{
if(str[j]>='A'&&str[j]<='Z')
a[i]++;
i++;
}
for(i='a';str[j]!='\0';++j)
{
if(str[j]>='a'&&str[j]<='z')
b[i]++;
i++;
}
}
cout<<"各字母出现的次数是: ";
for(i='A';i<'Z';++i)
cout<<i<<" "<<a[i]<<endl;
for(i='a';i<'z';++i)
cout<<i<<" "<<b[i]<<endl;
return 0;
}