#include <iostream>
#include<cctype>
#include<map>
using namespace std;
int main() {
// your code goes here
string N;
cin>>N;
map<char,int>digit_count;
for(char digit : N){
if(isdigit(digit))
digit_count[digit]++;
}
for(const auto& pair :digit_count){
cout<<pair.first<<":"<<pair.second<<endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZTxjY3R5cGU+CiNpbmNsdWRlPG1hcD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJc3RyaW5nIE47CgljaW4+Pk47CgltYXA8Y2hhcixpbnQ+ZGlnaXRfY291bnQ7Cglmb3IoY2hhciBkaWdpdCA6IE4pewoJCWlmKGlzZGlnaXQoZGlnaXQpKQoJCQlkaWdpdF9jb3VudFtkaWdpdF0rKzsKCX0KCWZvcihjb25zdCBhdXRvJiBwYWlyIDpkaWdpdF9jb3VudCl7CgkJY291dDw8cGFpci5maXJzdDw8IjoiPDxwYWlyLnNlY29uZDw8ZW5kbDsKCX0KCXJldHVybiAwOwp9