#include<bits/stdc++.h>
using namespace std;
int main(){
int cnt=0;
string s;
cin>>s;
int alpha[26]={0},i=0,j;
while(s[i]!=' '){
if(s[i]>='a'&& s[i]<='z'){
j=s[i]-'a';
alpha[j]++;
}
i++;
}
for(int i=0;i<26;i++){
if(alpha[i]>=1){
cout<<(char)(i+'a')<<" : "<<alpha[i]<<endl;
}
}
return 0;
}
void countCharImproved(char *str) {
std::map<char, int> count;
int l = strlen(str);
for(int i=0; i<l; i++) {
count[str[i]]++;
}
for(const auto kvp : count) {
std::cout << kvp.first << " occurs " << kvp.second << " times
";
}
}