#include <stdio.h>
#include <string.h>
int main() {
char str[100];
while (scanf("%s", str) != EOF) {
int a[26] = {0};
int length = strlen(str);
for (int i = 0; i < length; i++) {
// scanf("%c",&str[i]);
//在循环读取字符串中字符的时候,不需要使用scanf()
//因为已经通过scanf("%s", str)读取了整个字符串
if (str[i] >= 'A' && str[i] <= 'Z') {
a[str[i] - 'A']++;
}
}
for (int i = 0; i < 26; i++) {
printf("%c:%d\n", 'A' + i, a[i]);
}
}
return 0;
}



京公网安备 11010502036488号