#include <stdio.h>
#include <string.h>

void countCharacters(const char* str, int* countDict) {
    while (*str) 
    {
        countDict[*str]++;
        str++;
    }
}

int main() {
    char* inputString;
   
    scanf("%s", inputString);

    int countDict[128] = {0};
    
    countCharacters(inputString, countDict);

    for (int i = 0; i < 128; i++) {
        if (countDict[i] > 0) {
            printf("%c : %d\n", i, countDict[i]);
        }
    }
    
    return 0;
}