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 Python3 (judge verdict: Accepted)

# coding: utf-8
import sys
ans = {"a":0,"b":0,"c":0,"d":0,"e":0,"f":0,"g":0,"h":0,
    "i":0,"j":0,"k":0,"l":0,"m":0,"n":0,"o":0,"p":0,
    "q":0,"r":0,"s":0,"t":0,"u":0,"v":0,"w":0,"x":0,
    "y":0,"z":0}
lines = sys.stdin.readlines()
for line in lines:
    chars = list(line)
    for ch in chars:
        if ch == 'A' or ch =='a':
            ans["a"] += 1
        elif ch == 'B' or ch == 'b':
            ans["b"] += 1
        elif ch == 'C' or ch == 'c':
            ans["c"] += 1
        elif ch == 'D' or ch == 'd':
            ans["d"] += 1
        elif ch == 'E' or ch == 'e':
            ans["e"] += 1
        elif ch == 'F' or ch == 'f':
            ans["f"] += 1
        elif ch == 'G' or ch == 'g':
            ans["g"] += 1
        elif ch == 'H' or ch == 'h':
            ans["h"] += 1
        elif ch == 'I' or ch == 'i':
            ans["i"] += 1
        elif ch == 'J' or ch == 'j':
            ans["j"] += 1
        elif ch == 'K' or ch == 'k':
            ans["k"] += 1
        elif ch == 'L' or ch == 'l':
            ans["l"] += 1
        elif ch == 'M' or ch == 'm':
            ans["m"] += 1
        elif ch == 'N' or ch == 'n':
            ans["n"] += 1
        elif ch == 'O' or ch == 'o':
            ans["o"] += 1
        elif ch == 'P' or ch == 'p':
            ans["p"] += 1
        elif ch == 'Q' or ch == 'q':
            ans["q"] += 1
        elif ch == 'R' or ch == 'r':
            ans["r"] += 1
        elif ch == 'S' or ch == 's':
            ans["s"] += 1
        elif ch == 'T' or ch == 't':
            ans["t"] += 1
        elif ch == 'U' or ch == 'u':
            ans["u"] += 1
        elif ch == 'V' or ch == 'v':
            ans["v"] += 1
        elif ch == 'W' or ch == 'w':
            ans["w"] += 1
        elif ch == 'X' or ch == 'x':
            ans["x"] += 1
        elif ch == 'Y' or ch == 'y':
            ans["y"] += 1
        elif ch == 'Z' or ch == 'z':
            ans["z"] += 1

for al, count in ans.items():
    print(al + " : " + str(count))