/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{


String s = "abdsd3$asda$asasdd$sadas";
int[] counts = new int[128];
for (int i = 0; i < s.length(); i++) {
    char ch = s.charAt(i);
    if (ch < 128) {
        counts[ch]++;
    } else {
        System.err.println("Character is out of range: "+ch);
    }
}
for (char c = 0 ; c < 128 ; c++) {
	if (counts[c] != 0) {
        System.out.println(c + " : " + counts[c]);
	}
}
	}
}