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 (Python):
s=[int(0) for i in range(26)]
while True:
    try:
        x=input()
        for i in range(len(list(x))):
            if 97<=ord(list(x)[i].lower())<=122:
                s[ord(list(x)[i].lower())-97]=s[ord(list(x)[i].lower())-97]+1
    except EOFError:
        break
for i in range(26):
    print(chr(97+i),":",s[i])

Solution (Python):


"""
??§???????°?????????????
"""
import sys

lower = "abcdefghijklmnopqrstuvwxyz"
upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
inp = sys.stdin.read() 
inp = inp.translate(str.maketrans(upper,lower))

for i in lower:
    print("{0} : {1}".format(i,inp.count(i)))

Solution (Python):
from string import ascii_lowercase as letters
import sys
data = sys.stdin.read().lower()

num = [data.count(s) for s in letters]
ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)])
print(ans)

Solution (Python):
try:
	s = ''
	while True:
		s = s + input().lower()
except EOFError:
	[print(chr(o)+' : '+str(s.count(chr(o)))) for o in range(ord('a'),ord('z')+1)]

Solution (Python):
def main():
    S = ''
    while True:
        try:
            S = S + input()
        except:
            break

    s = S.lower()
    for i in range(97, 123):
        c = chr(i)
        n = s.count(c)
        print('{} : {}'.format(c, n))

main()

Solution (Python):
s = ""
while True:
    try:
        sent = input()
    except:
        break
    s += sent
    
ch=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r',
 's','t','u','v','w','x', 'y', 'z']

sl=s.lower()

for c in ch:
    cnt=sl.count(c)
    print("{} : {}".format(c,cnt))

Solution (Python):
import sys

cnt = {}

for line in sys.stdin:
  for l in line:
    if l.isalpha():
      c = l.lower()
      cnt[c] = cnt.get(c,0)+1

for i in range(26):
  c = chr(ord('a')+i)
  print( c, " : ", cnt.get(c,0), sep = '' )

Solution (Python):
import sys

dic = {}
for i in range(ord('a'), ord('z') + 1):
    dic[chr(i)] = 0

for line in sys.stdin:
    for i in range(len(line)):
        char = line[i].lower()
        if char in dic.keys():dic[char] += 1

for i in range(ord('a'), ord('z') + 1):
    print("{} : {}".format(chr(i), dic[chr(i)]))

Solution (Python):
import sys

Target = ""
for line in sys.stdin:
    Target += line
for i in range(26):
    print(chr(i + 97), ":", Target.lower().count(chr(i + 97)))

Solution (Python):
z=''
while True:
    try:
        z += input()
    except EOFError:
        break
a = []
b = 0
for i in z:
    if i.isupper():
        a += i.lower()
    a += i
al = [chr(i) for i in range(97, 97 + 26)]
for i in al:
    b = str(a.count(i))
    print('{} : {}'.format(i,b))

Solution (Python):
text = []
try:
    while True:
        text.append(input())
except:
    for s in [chr(k) for k in range(97,97+26)]:
        count = 0
        for i in text:
            count += i.lower().count(s)
        print(s,":",count)

Solution (Python):
s=''
try:
  while True:
   sentence=input()
   s+=sentence
except:
    pass
    sentence2=s.lower()
    for i in[chr(i) for i in range(97,97+26)]:
     print(i,':',sentence2.count(i))

Solution (Python):
try:
    text = ""
    while True:
        text += input()
except:
    for s in [chr(k) for k in range(97,97+26)]:
        print(s,":",text.lower().count(s))

Solution (Python):
s=''
try:
  while True:
   sentence=input()
   s+=sentence.lower()
except:
    for i in[chr(i) for i in range(97,97+26)]:
     print(i,':',s.count(i))

Solution (Python):
import string
x = ''
allcase = string.ascii_lowercase
while True:
    try: x+=input().lower()
    except:break
for letter in allcase:
    print(letter + " : " + repr(x.count(letter)))

Solution (Python):
l = 'abcdefghijklmnopqrstuvwxyz'
mp = [0 for _ in list(l)]

while True:
    try:
        in_data = list(filter(lambda x: 97 <= ord(x) <= 122 , raw_input().lower()))
    except:
        break

    for s in in_data:
        mp[ord(s) - 97] += 1

for i,j in zip(l, mp):
    print "%s : %s" % (i, j)

Solution (Python):


import sys, math, os


PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


letters = [chr(k) for k in range(97, 123)]
count = {char: 0 for char in letters}
for line in sys.stdin:
    for char in line.lower():
        if char in letters:
            count[char] += 1

for char in letters:
    print(char, ':', count[char])

Solution (Python):
alpha = 'abcdefghijklmnopqrstuvwxyz'
text = ''

while True:
    try:
        text += input().lower()
    except EOFError:
        break

for a in alpha:
    print('{} : {}'.format(a, text.count(a)))

Solution (Python):
s=''
while True:
    try:
        s += input().lower()
    except:
        break
 
alph = "abcdefghijklmnopqrstuvwxyz"
 
for a in alph:
    print("{} : {}".format(a, s.count(a)))

Solution (Python):
import sys

az = [0 for i in range(26)]
s = sys.stdin.read().lower()
l = [ord(i) for i in s]

for i in range(len(l)):
    c = l[i] - 97
    if(c >= 0 and c <= 26):
        az[c] += 1

for i in range(26):
    print('{} : {}'.format(chr(i + 97),az[i]))

Solution (Python):
import sys
 
string = str()
 
for line in sys.stdin:
    string += line.lower()

alph = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']

for letter in alph:
	sum = 0
	n = -1
	while True:
		n = string.find(letter, n + 1)
		if n == -1:
			break
		sum += 1
	print("{} : {}".format(letter, sum))

Solution (Python):
import sys

alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
cnt = 26 * [0]
Input = ""
loop = True







for I in sys.stdin:
    Input += I

for i1 in range(len(alphabet)):
    for i2 in range(len(Input)):
        if 'A' <= Input[i2] <= 'Z':
            w = Input[i2].lower()
        else:
            w = Input[i2]
        if alphabet[i1] == w:
            cnt[i1] += 1
    print(alphabet[i1] + " : " + str(cnt[i1]))

Solution (Python):
import sys

alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
cnt = 26 * [0]
Input = ""
loop = True

for I in sys.stdin:
    Input += I

for i1 in range(len(alphabet)):
    for i2 in range(len(Input)):
        if 'A' <= Input[i2] <= 'Z':
            w = Input[i2].lower()
        else:
            w = Input[i2]
        if alphabet[i1] == w:
            cnt[i1] += 1
    print(alphabet[i1] + " : " + str(cnt[i1]))

Solution (Python):
import sys
STRING = ""
for line in sys.stdin:
    STRING += line.lower()
CHRS = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\
         'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
for i in CHRS:
    print("%s : %d" % (i, STRING.count(i)))

Solution (Python):
import sys
alpha = "abcdefghijklmnopqrstuvwxyz"
cnt_dict = { key:0 for key in alpha}
string = sys.stdin.read().lower()
for i in alpha:
    print("{0} : {1}".format(i, string.count(i)))

Solution (Python):
from collections import OrderedDict

d = OrderedDict((chr(i), 0) for i in range(ord('a'), ord('a')+26))

while True:
    try:
        s = input()
    except EOFError:
        break
    else:
        for c in s.lower():
            if c in d:
                d[c] += 1

for k, v in d.items():
    print("{} : {}".format(k, v))

Solution (Python):
number_of_letter={'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}

while True:
    letters=''
    try:
        letters=input()
    except:
        break

    letters=letters.lower()
    number_of_letter['a']+=letters.count('a')
    number_of_letter['b']+=letters.count('b')
    number_of_letter['c']+=letters.count('c')
    number_of_letter['d']+=letters.count('d')
    number_of_letter['e']+=letters.count('e')
    number_of_letter['f']+=letters.count('f')
    number_of_letter['g']+=letters.count('g')
    number_of_letter['h']+=letters.count('h')
    number_of_letter['i']+=letters.count('i')
    number_of_letter['j']+=letters.count('j')
    number_of_letter['k']+=letters.count('k')
    number_of_letter['l']+=letters.count('l')
    number_of_letter['m']+=letters.count('m')
    number_of_letter['n']+=letters.count('n')
    number_of_letter['o']+=letters.count('o')
    number_of_letter['p']+=letters.count('p')
    number_of_letter['q']+=letters.count('q')
    number_of_letter['r']+=letters.count('r')
    number_of_letter['s']+=letters.count('s')
    number_of_letter['t']+=letters.count('t')
    number_of_letter['u']+=letters.count('u')
    number_of_letter['v']+=letters.count('v')
    number_of_letter['w']+=letters.count('w')
    number_of_letter['x']+=letters.count('x')
    number_of_letter['y']+=letters.count('y')
    number_of_letter['z']+=letters.count('z')

for i in range(97,123):
    print(chr(i),':',number_of_letter[chr(i)])

Solution (Python):
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        s=list(input().upper())
        for i in s:
            if i=='A':
                a[0]+=1
            elif i=='B':
                a[1]+=1
            elif i=='C':
                a[2]+=1
            elif i=='D':
                a[3]+=1
            elif i=='E':
                a[4]+=1
            elif i=='F':
                a[5]+=1
            elif i=='G':
                a[6]+=1
            elif i=='H':
                a[7]+=1
            elif i=='I':
                a[8]+=1
            elif i=='J':
                a[9]+=1
            elif i=='K':
                a[10]+=1
            elif i=='L':
                a[11]+=1
            elif i=='M':
                a[12]+=1
            elif i=='N':
                a[13]+=1
            elif i=='O':
                a[14]+=1
            elif i=='P':
                a[15]+=1
            elif i=='Q':
                a[16]+=1
            elif i=='R':
                a[17]+=1
            elif i=='S':
                a[18]+=1
            elif i=='T':
                a[19]+=1
            elif i=='U':
                a[20]+=1
            elif i=='V':
                a[21]+=1
            elif i=='W':
                a[22]+=1
            elif i=='X':
                a[23]+=1
            elif i=='Y':
                a[24]+=1
            elif i=='Z':
                a[25]+=1 

except EOFError:
    pass

for i in range(26):
    print(w[i:i+1], ':', str(a[i]))

Solution (Python):
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        s=list(input().upper())
        for i in s:
            if i=='A':
                a[0]+=1
            elif i=='B':
                a[1]+=1
            elif i=='C':
                a[2]+=1
            elif i=='D':
                a[3]+=1
            elif i=='E':
                a[4]+=1
            elif i=='F':
                a[5]+=1
            elif i=='G':
                a[6]+=1
            elif i=='H':
                a[7]+=1
            elif i=='I':
                a[8]+=1
            elif i=='J':
                a[9]+=1
            elif i=='K':
                a[10]+=1
            elif i=='L':
                a[11]+=1
            elif i=='M':
                a[12]+=1
            elif i=='N':
                a[13]+=1
            elif i=='O':
                a[14]+=1
            elif i=='P':
                a[15]+=1
            elif i=='Q':
                a[16]+=1
            elif i=='R':
                a[17]+=1
            elif i=='S':
                a[18]+=1
            elif i=='T':
                a[19]+=1
            elif i=='U':
                a[20]+=1
            elif i=='V':
                a[21]+=1
            elif i=='W':
                a[22]+=1
            elif i=='X':
                a[23]+=1
            elif i=='Y':
                a[24]+=1
            elif i=='Z':
                a[25]+=1 

except EOFError:
    pass

for i in range(26):
    print(w[i:i+1], ':', str(a[i]))

Solution (Python):
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        s=list(input().upper())
        for i in s:
            if i=='A':
                a[0]+=1
            elif i=='B':
                a[1]+=1
            elif i=='C':
                a[2]+=1
            elif i=='D':
                a[3]+=1
            elif i=='E':
                a[4]+=1
            elif i=='F':
                a[5]+=1
            elif i=='G':
                a[6]+=1
            elif i=='H':
                a[7]+=1
            elif i=='I':
                a[8]+=1
            elif i=='J':
                a[9]+=1
            elif i=='K':
                a[10]+=1
            elif i=='L':
                a[11]+=1
            elif i=='M':
                a[12]+=1
            elif i=='N':
                a[13]+=1
            elif i=='O':
                a[14]+=1
            elif i=='P':
                a[15]+=1
            elif i=='Q':
                a[16]+=1
            elif i=='R':
                a[17]+=1
            elif i=='S':
                a[18]+=1
            elif i=='T':
                a[19]+=1
            elif i=='U':
                a[20]+=1
            elif i=='V':
                a[21]+=1
            elif i=='W':
                a[22]+=1
            elif i=='X':
                a[23]+=1
            elif i=='Y':
                a[24]+=1
            elif i=='Z':
                a[25]+=1 

except EOFError:
    pass

for i in range(26):
    print(w[i:i+1], ':', str(a[i]))

Solution (Python):
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        s=list(input().upper())
        for i in s:
            if i=='A':
                a[0]+=1
            elif i=='B':
                a[1]+=1
            elif i=='C':
                a[2]+=1
            elif i=='D':
                a[3]+=1
            elif i=='E':
                a[4]+=1
            elif i=='F':
                a[5]+=1
            elif i=='G':
                a[6]+=1
            elif i=='H':
                a[7]+=1
            elif i=='I':
                a[8]+=1
            elif i=='J':
                a[9]+=1
            elif i=='K':
                a[10]+=1
            elif i=='L':
                a[11]+=1
            elif i=='M':
                a[12]+=1
            elif i=='N':
                a[13]+=1
            elif i=='O':
                a[14]+=1
            elif i=='P':
                a[15]+=1
            elif i=='Q':
                a[16]+=1
            elif i=='R':
                a[17]+=1
            elif i=='S':
                a[18]+=1
            elif i=='T':
                a[19]+=1
            elif i=='U':
                a[20]+=1
            elif i=='V':
                a[21]+=1
            elif i=='W':
                a[22]+=1
            elif i=='X':
                a[23]+=1
            elif i=='Y':
                a[24]+=1
            elif i=='Z':
                a[25]+=1 

except EOFError:
    pass

for i in range(26):
    print(w[i:i+1], ':', str(a[i]))

Solution (Python):
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        s=list(input().upper())
        for i in s:
            if i=='A':
                a[0]+=1
            elif i=='B':
                a[1]+=1
            elif i=='C':
                a[2]+=1
            elif i=='D':
                a[3]+=1
            elif i=='E':
                a[4]+=1
            elif i=='F':
                a[5]+=1
            elif i=='G':
                a[6]+=1
            elif i=='H':
                a[7]+=1
            elif i=='I':
                a[8]+=1
            elif i=='J':
                a[9]+=1
            elif i=='K':
                a[10]+=1
            elif i=='L':
                a[11]+=1
            elif i=='M':
                a[12]+=1
            elif i=='N':
                a[13]+=1
            elif i=='O':
                a[14]+=1
            elif i=='P':
                a[15]+=1
            elif i=='Q':
                a[16]+=1
            elif i=='R':
                a[17]+=1
            elif i=='S':
                a[18]+=1
            elif i=='T':
                a[19]+=1
            elif i=='U':
                a[20]+=1
            elif i=='V':
                a[21]+=1
            elif i=='W':
                a[22]+=1
            elif i=='X':
                a[23]+=1
            elif i=='Y':
                a[24]+=1
            elif i=='Z':
                a[25]+=1 

except EOFError:
    pass

for i in range(26):
    print(w[i:i+1], ':', str(a[i]))

Solution (Python):
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        s=list(raw_input().upper())
        for i in s:
            if i=='A':
                a[0]+=1
            elif i=='B':
                a[1]+=1
            elif i=='C':
                a[2]+=1
            elif i=='D':
                a[3]+=1
            elif i=='E':
                a[4]+=1
            elif i=='F':
                a[5]+=1
            elif i=='G':
                a[6]+=1
            elif i=='H':
                a[7]+=1
            elif i=='I':
                a[8]+=1
            elif i=='J':
                a[9]+=1
            elif i=='K':
                a[10]+=1
            elif i=='L':
                a[11]+=1
            elif i=='M':
                a[12]+=1
            elif i=='N':
                a[13]+=1
            elif i=='O':
                a[14]+=1
            elif i=='P':
                a[15]+=1
            elif i=='Q':
                a[16]+=1
            elif i=='R':
                a[17]+=1
            elif i=='S':
                a[18]+=1
            elif i=='T':
                a[19]+=1
            elif i=='U':
                a[20]+=1
            elif i=='V':
                a[21]+=1
            elif i=='W':
                a[22]+=1
            elif i=='X':
                a[23]+=1
            elif i=='Y':
                a[24]+=1
            elif i=='Z':
                a[25]+=1 

except EOFError:
    pass

for i in range(26):
    print w[i:i+1], ':', str(a[i])

Solution (Python):
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        s=list(raw_input().upper())
        for i in s:
            if i=='A':
                a[0]+=1
            elif i=='B':
                a[1]+=1
            elif i=='C':
                a[2]+=1
            elif i=='D':
                a[3]+=1
            elif i=='E':
                a[4]+=1
            elif i=='F':
                a[5]+=1
            elif i=='G':
                a[6]+=1
            elif i=='H':
                a[7]+=1
            elif i=='I':
                a[8]+=1
            elif i=='J':
                a[9]+=1
            elif i=='K':
                a[10]+=1
            elif i=='L':
                a[11]+=1
            elif i=='M':
                a[12]+=1
            elif i=='N':
                a[13]+=1
            elif i=='O':
                a[14]+=1
            elif i=='P':
                a[15]+=1
            elif i=='Q':
                a[16]+=1
            elif i=='R':
                a[17]+=1
            elif i=='S':
                a[18]+=1
            elif i=='T':
                a[19]+=1
            elif i=='U':
                a[20]+=1
            elif i=='V':
                a[21]+=1
            elif i=='W':
                a[22]+=1
            elif i=='X':
                a[23]+=1
            elif i=='Y':
                a[24]+=1
            elif i=='Z':
                a[25]+=1 

except EOFError:
    pass

for i in range(26):
    print w[i:i+1], ':', str(a[i])

Solution (Python):
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        s=list(raw_input().upper())
        for i in s:
            if i=='A':
                a[0]+=1
            elif i=='B':
                a[1]+=1
            elif i=='C':
                a[2]+=1
            elif i=='D':
                a[3]+=1
            elif i=='E':
                a[4]+=1
            elif i=='F':
                a[5]+=1
            elif i=='G':
                a[6]+=1
            elif i=='H':
                a[7]+=1
            elif i=='I':
                a[8]+=1
            elif i=='J':
                a[9]+=1
            elif i=='K':
                a[10]+=1
            elif i=='L':
                a[11]+=1
            elif i=='M':
                a[12]+=1
            elif i=='N':
                a[13]+=1
            elif i=='O':
                a[14]+=1
            elif i=='P':
                a[15]+=1
            elif i=='Q':
                a[16]+=1
            elif i=='R':
                a[17]+=1
            elif i=='S':
                a[18]+=1
            elif i=='T':
                a[19]+=1
            elif i=='U':
                a[20]+=1
            elif i=='V':
                a[21]+=1
            elif i=='W':
                a[22]+=1
            elif i=='X':
                a[23]+=1
            elif i=='Y':
                a[24]+=1
            elif i=='Z':
                a[25]+=1 

except EOFError:
    pass

for i in range(26):
    print w[i:i+1], ':', str(a[i])

Solution (Python):
import sys

alpha = 'abcdefghijklmnopqrstuvwxyz'
dic = {c:0 for c in alpha}

t = sys.stdin.read()

for s in t:
    s = s.lower()
    if s in alpha:
        dic[s] += 1

for i in sorted(dic):
    print("{} : {}".format(i,dic[i]))

Solution (Python):
import sys
s = (sys.stdin.read()).lower()
for i in range(97,97+26):
    print('%s : %d' %(chr(i), s.count(chr(i))))

Solution (Python):
import sys

sentence = sys.stdin.read().lower()
alf=[chr(i) for i in range(ord('a'), ord('z')+1)]

ans=dict(zip(alf, [0]*26))

for a in sentence:
  if a in ans:
    ans[a] += 1

for (key, val) in sorted(ans.items()):
  print(key ,":" , val)

Solution (Python):
import sys

counter = {k: 0 for k in  "abcdefghijklmnopqrstuvwxyz"}

while True:
    try:
        line = raw_input()
    except:
        break
    for i in line.lower():
        if i in counter.keys():
            counter[i] += 1
for k in sorted(counter.keys()):
    print "{} : {}".format(k,counter[k])

Solution (Python):
import sys
alpha = (chr(i) for i in range(97, 97+26))
l = []
for line in sys.stdin:
    l += line.lower()
count = {a:l.count(a) for a in alpha}
for k in sorted(count):
    print('%c : %i' % (k, count[k]))

Solution (Python):
chars = ""
while True:
	try:
		chars += raw_input()
	except EOFError:
		break


low_chars = chars.lower()


alphabet = "abcdefghijklmnopqrstuvwxyz"

for c in alphabet:
	cnt = low_chars.count(c)
	print("{:} : {:}".format(c, cnt))

Solution (Python):

alphabet = 'abcdefghijklmnopqrstuvwxyz'
S = ''
while True:
    try:
        n = input()
        S += n
    except EOFError:
        break
ans_dict = {}
for char in alphabet:
    ans_dict[char] = S.count(char)
    ans_dict[char] += S.count(char.upper())
for k, v in sorted(ans_dict.items(), key=lambda x: x[0]):
    print('{} : {}'.format(k, v))

Solution (Python):
def main():

    alphabets_table = [0 for i in range(26)]

    while True:
        try:
            input_string = input()
            lower_string = input_string.lower()
            for i, _letter in enumerate("abcdefghijklmnopqrstuvwxyz"):
                alphabets_table[i] += lower_string.count(_letter)
        except EOFError:
            break
            
    for i, _letter in enumerate("abcdefghijklmnopqrstuvwxyz"):
        print('%s : %s' % (_letter, alphabets_table[i]))


main()

Solution (Python):
a=ord('a')
rdif=range(ord('z')-a+1)
l=[0 for _ in rdif]
s=''
while True:
    try: s+=input().lower()
    except: break    
for i in range(len(s)):
    if s[i].isalpha(): l[ord(s[i])-a]+=1
for i in rdif:
    print(chr(i+a),':',l[i])

Solution (Python):
import sys

alphabets = 'abcdefghijklmnopqrstuvwxyz'

cnt = {}
for c in alphabets:
    cnt[c] = 0

for line in sys.stdin:
    for c in line:
        if 'a' <= c.lower() <= 'z':
            cnt[c.lower()] += 1

for c in alphabets:
    print('%s : %d' % (c, cnt[c]) )

Solution (Python):

"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_C&lang=jp

"""
import sys
from sys import stdin
from collections import defaultdict
input = stdin.readline


def main(args):
    word = defaultdict(int)
    for line in sys.stdin:
        line = line.strip()
        for c in line:
            if c.isalpha():
                c = c.lower()
                word[c] += 1

    for c in 'abcdefghijklmnopqrstuvwxyz':
        print('{} : {}'.format(c, word[c]))


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):
import sys

alpha = 'abcdefghijklmnopqrstuvwxyz'
m = {k:0 for k in alpha}
q = ''
for line in sys.stdin:
    q += line

for s in q:
    s = s.lower()
    if s in m:
        m[s] += 1
    
for s in alpha:
    print('%s : %d' % (s, m[s]))

Solution (Python):

import string
s = ""
while(1):
	try:
		s += str(input()).lower()
	except:
		break
		
alphabet = string.ascii_lowercase
ans = [0]*26
for x in s:	
	if x in alphabet:
		ans[ ord(x)-ord('a') ] += 1

for i in range(len(ans)):
	print("{} : {}".format(chr(i+ord('a')), ans[i]))

Solution (Python):
import sys
num = [0 for i in range(26)]
for str in sys.stdin:
    st=str.lower()
    for k in range(len(st)):
        if ord(st[k])<=122 and ord(st[k])>=97:
            num[ord(st[k])-97]+=1
for i in range(26):
    print("{0} : {1}".format(chr(i+97),num[i]))

Solution (Python):
import sys
s=str()
x="abcdefghijklmnopqrstuvwxyz"
for a in sys.stdin:s+=a.lower()
for c in x:print(c+" : "+str(s.count(c)))

Solution (Python):
import sys
import string
from collections import Counter


def main():
    s = sys.stdin.read()
    c = Counter(s.lower())

    for char in string.ascii_lowercase:
        print(char, ":", c.get(char, 0))

if __name__ == "__main__":
    main()

Solution (Python):
a=""
while 1:
 try:a+=input().lower()
 except:break
[print(chr(97+i),':',a.count(chr(97+i)))for i in range(26)]

Solution (Python):
import sys
s=sys.stdin.read().lower()
[print(chr(i),':',s.count(chr(i)))for i in range(97,123)]

Solution (Python):
import sys
s=sys.stdin.read().lower()
for i in range(97,123):print(chr(i),':',s.count(chr(i)))

Solution (Python):
alpha = [chr(i) for i in range(97, 97+26)]

import sys
s = " "
for line in sys.stdin:
    s += line.lower()

for i in s:
    if i.lower() in alpha:
        alpha.append(i.lower())
        
for i in alpha[:26]:
    print(str(i) + " : " + str(alpha.count(i) - 1))

Solution (Python):
sente=""
while True:
    try:
        t=input().lower()
        sente = sente+t
    except:
        break
for i in range(97,123):
    print(chr(i),":",sente.count(chr(i)))

Solution (Python):
wordcount = ""
while True:
    try:
        words = input()
        wordcount = wordcount + words.lower()
    except:
        break    
for i in [chr(i) for i in range(97,97+26)]:
    print('{0} : {1}'.format(i,wordcount.count(i)))

Solution (Python):
S = ""
while 1:
	try:
		s = raw_input()
	except:
		break
	S += s.lower()

for i in range(ord('a'), ord('z')+1):
	print '%s : %d' %(chr(i), S.count(chr(i)))

Solution (Python):
import sys

d = { chr(i): 0 for i in range(97, 123) }
s = [i for i in sys.stdin]
for i in s:
    i = list(i)
    for c in i:
        try: 
            d[c.lower()] += 1
        except:
            continue
for i,j in d.items():
    print('{} : {}'.format(i,j))

Solution (Python):
import sys

a = ""
for input in sys.stdin:
    a += input.lower()
for i in range(97,123):
    print "%c : %d"%(chr(i),a.count(chr(i)))

Solution (Python):
import sys

alnum = ord('z') - ord('a') + 1
res = [0] * alnum

for line in sys.stdin:
    instr = line.lower()

    for s in instr:
        if s.isalpha():
            relc = ord(s) - ord('a')
            res[relc] += 1

for i in range(alnum):
    print("{0} : {1}".format(chr(i + ord('a')), res[i]))

Solution (Python):
import sys
from collections import Counter
S = ""
for s in sys.stdin:
    s = s.strip().lower()
    if not s:
        break
    S += s
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", S.count(i))

Solution (Python):
import sys
from collections import Counter
m = Counter(sys.stdin.read().lower())
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", m[i])

Solution (Python):
import sys
from collections import Counter
m = Counter(sys.stdin.read().lower())
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", m[i])

Solution (Python):
import sys
S= sys.stdin.read()
print('a : '+str(S.count('a')+S.count('A')))
print('b : '+str(S.count('b')+S.count('B')))
print('c : '+str(S.count('c')+S.count('C')))
print('d : '+str(S.count('d')+S.count('D')))
print('e : '+str(S.count('e')+S.count('E')))
print('f : '+str(S.count('f')+S.count('F')))
print('g : '+str(S.count('g')+S.count('G')))
print('h : '+str(S.count('h')+S.count('H')))
print('i : '+str(S.count('i')+S.count('I')))
print('j : '+str(S.count('j')+S.count('J')))
print('k : '+str(S.count('k')+S.count('K')))
print('l : '+str(S.count('l')+S.count('L')))
print('m : '+str(S.count('m')+S.count('M')))
print('n : '+str(S.count('n')+S.count('N')))
print('o : '+str(S.count('o')+S.count('O')))
print('p : '+str(S.count('p')+S.count('P')))
print('q : '+str(S.count('q')+S.count('Q')))
print('r : '+str(S.count('r')+S.count('R')))
print('s : '+str(S.count('s')+S.count('S')))
print('t : '+str(S.count('t')+S.count('T')))
print('u : '+str(S.count('u')+S.count('U')))
print('v : '+str(S.count('v')+S.count('V')))
print('w : '+str(S.count('w')+S.count('W')))
print('x : '+str(S.count('x')+S.count('X')))
print('y : '+str(S.count('y')+S.count('Y')))
print('z : '+str(S.count('z')+S.count('Z')))

Solution (Python):
import sys
import string


def main():
    tmp = ''

    try:
        while True:
            tmp += input()
    except EOFError:
        pass

    tmp = list(filter(lambda x: x in string.ascii_lowercase, tmp.lower()))

    for c in string.ascii_lowercase:
        print('{} : {}'.format(c, tmp.count(c)))

    return 0


if __name__ == '__main__':
    sys.exit(main())

Solution (Python):

import sys
a = []
for line in sys.stdin:
    a.append(list(line.strip().replace(" ","").lower()))
a = reduce(lambda x,y: x+y,a)
dict = {}
for i in range(26):
    dict[chr(ord('a')+i)] = 0
for i in a:
    for key,value in dict.items():
        if key == i:
            dict[key] += 1
for key,value in sorted(dict.items()):
    print "%s : %d" % (key,value)

Solution (Python):
alpha = 'abcdefghijklmnopqrstuvwxyz'
text = ''

while True:
    try:
        text += input().lower()
    except EOFError:
        break

for a in alpha:
    print('{} : {}'.format(a, text.count(a)))

Solution (Python):

alfa_list = [chr(i) for i in range(97, 97+26)]
lines = []
count = 0
while(1):
    try:
        lines.append(str(raw_input()).lower())
    except:
        break
for ch in alfa_list:
    print "{0} : {1}".format(alfa_list[count],str(lines).count(ch))
    count += 1

Solution (Python):
import sys
hoge = { chr(x):0 for x in range(ord('a'), ord('z')+1)}
a = list()
for line in sys.stdin:
    a.append(line)
for line in a:
    for x in line:
        if x.lower() not in hoge:
            continue
        else:
            hoge[x.lower()] += 1
for k, v in sorted(hoge.items()):
    print ('{} : {}'.format(k, v))

Solution (Python):
import sys

char_list = []
for line in sys.stdin:
    char_list.append([j for j in line.lower()])
char_dict = {i:0 for i in "abcdefghijklmnopqrstuvwxyz"}
for i in range(len(char_list)):
    for j in char_list[i]:
        if j in char_dict:
            char_dict[j] += 1
for i in char_dict:
    print(i+" : {0}".format(char_dict[i]))