/* 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 = "Par programming is fun!";
		s = s.toLowerCase();

		
		int[] contagens = new int[256];
		for (int i = 0; i < s.length(); ++i)
			contagens[s.charAt(i)]++;
	
		for (int i = 0; i < 256; ++i){
			if(contagens[i] > 1){
				System.out.println("Number of occurences of " + (char)i + " is " + contagens[i]);
			}
		}
	}
}