Problem:
Counting Characters

Write a program which counts and reports the number of each alphabetical letter. Ignore the case of characters.

Input

A sentence in English is given in several lines.

Output

Prints the number of alphabetical letters in the following format:

a : The number of 'a'
b : The number of 'b'
c : The number of 'c'
.
.
z : The number of 'z'

Constraints

The number of characters in the sentence < 1200

Sample Input

This is a pen.

Sample Output

a : 1
b : 0
c : 0
d : 0
e : 1
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 1
o : 0
p : 1
q : 0
r : 0
s : 2
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0

Solution in JAVA (judge verdict: Wrong Answer)

import java.io.*;
import java.util.Arrays;

public class Main{ 
        public static void main(String[] args){
            int count=0,jc=0,il;
            int bl[],al[];
            String moji;
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{    bl = new int[400];
                al = new int[40];
                Arrays.fill(al,0);
                char[] moji1=new char[1200];
                    moji=reader.readLine();
                    bl[0]=moji.length();
                    String kmoji=moji.toLowerCase();
                    for(il=0;il<bl[jc];il++){
                        moji1[il]=kmoji.charAt(il);
                    }
                for(il=0;il<bl[jc];il++){
                    if(moji1[il]=='a'){
                        al[0]+=1;
                    }
                    if(moji1[il]=='b'){
                        al[1]+=1;
                    }
                    if(moji1[il]=='c'){
                        al[2]+=1;
                    }
                    if(moji1[il]=='d'){
                        al[3]+=1;
                    }
                    if(moji1[il]=='e'){
                        al[4]+=1;
                    }
                    if(moji1[il]=='f'){
                        al[5]+=1;
                    }
                    if(moji1[il]=='g'){
                        al[6]+=1;
                    }
                    if(moji1[il]=='h'){
                        al[7]+=1;
                    }
                    if(moji1[il]=='i'){
                        al[8]+=1;
                    }
                    if(moji1[il]=='j'){
                        al[9]+=1;
                    }
                    if(moji1[il]=='k'){
                        al[10]+=1;
                    }
                    if(moji1[il]=='l'){
                        al[11]+=1;
                    }
                    if(moji1[il]=='m'){
                        al[12]+=1;
                    }
                    if(moji1[il]=='n'){
                        al[13]+=1;
                    }
                    if(moji1[il]=='o'){
                        al[14]+=1;
                    }
                    if(moji1[il]=='p'){
                        al[15]+=1;
                    }
                    if(moji1[il]=='q'){
                        al[16]+=1;
                    }
                    if(moji1[il]=='r'){
                        al[17]+=1;
                    }
                    if(moji1[il]=='s'){
                        al[18]+=1;
                    }
                    if(moji1[il]=='t'){
                        al[19]+=1;
                    }
                    if(moji1[il]=='u'){
                        al[20]+=1;
                    }
                    if(moji1[il]=='v'){
                        al[21]+=1;
                    }
                    if(moji1[il]=='w'){
                        al[22]+=1;
                    }
                    if(moji1[il]=='x'){
                        al[23]+=1;
                    }
                    if(moji1[il]=='y'){
                        al[24]+=1;
                    }
                    if(moji1[il]=='z'){
                        al[25]+=1;
                    }
                }
                System.out.println("a : " + al[0]);
                System.out.println("b : " + al[1]);
                System.out.println("c : " + al[2]);
                System.out.println("d : " + al[3]);
                System.out.println("e : " + al[4]);
                System.out.println("f : " + al[5]);
                System.out.println("g : " + al[6]);
                System.out.println("h : " + al[7]);
                System.out.println("i : " + al[8]);
                System.out.println("j : " + al[9]);
                System.out.println("k : " + al[10]);
                System.out.println("l : " + al[11]);
                System.out.println("m : " + al[12]);
                System.out.println("n : " + al[13]);
                System.out.println("o : " + al[14]);
                System.out.println("p : " + al[15]);
                System.out.println("q : " + al[16]);
                System.out.println("r : " + al[17]);
                System.out.println("s : " + al[18]);
                System.out.println("t : " + al[19]);
                System.out.println("u : " + al[20]);
                System.out.println("v : " + al[21]);
                System.out.println("w : " + al[22]);
                System.out.println("x : " + al[23]);
                System.out.println("y : " + al[24]);
                System.out.println("z : " + al[25]);
            } catch (IOException e){
                System.out.println(e);
            }
        }
    }