#include <iostream>
#include<vector>
#include<string>
using namespace std;

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	string n;
	cin>>n;
	vector<int>freq(256,0);
	 for (char x : n) {
        freq[x]++;
	 }
	 for (int i = 0; i < 256; i++) {
        if (freq[i] > 0) {
            cout <<(char)i <<":"<<freq[i]<< endl;
        }
}}