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):
import sys

InputText = ""
while True:
    try:
        InputText += input().lower()
    except:
        break

alphabet = [chr(i) for i in range(97,97+26)]
count = [0 for i in range(26)]

for i in range(len(InputText)):
    for j in range(26):
        if InputText[i] == alphabet[j]:
            count[j] = int(count[j]) + 1


for i in range(26):
    print(alphabet[i],":",count[i])

Solution (Python):
import sys
cnts = {chr(a):0 for a in range(ord('a'),ord('z')+1)}
for line in sys.stdin:
    alpha_line = [x.lower() for x in list(filter(lambda c: c.isalpha(), list(line)))]
    for a in alpha_line: cnts[a] += 1

for a in range(ord('a'),ord('z')+1): print(chr(a),':',cnts[chr(a)])

Solution (Python):
import sys
import math

char = "abcdefghijklmnopqrstuvwxyz"

cnt = {}

for S in sys.stdin:
    for x in S:
        x = x.lower()
        if x not in cnt:
            cnt[x] = 0
        cnt[x] += 1
    
for c in char:
    sys.stdout.write(c + " : ")
    if c not in cnt:
        print 0
    else:
        print cnt[c]

Solution (Python):
import sys
cnts = {}
for line in sys.stdin:
    alpha_line = [x.lower() for x in list(filter(lambda c: c.isalpha(), list(line)))]
    for c in alpha_line: 
        cnts[c] = cnts.get(c,0) + 1
 
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Solution (Python):
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
 
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Solution (Python):
import sys

s = str()
alpha = "abcdefghijklmnopqrstuvwxyz"


for line in sys.stdin:
    s += line.lower()
 
for c in alpha:
    print(c+" : "+str(s.count(c)))

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

Solution (Python):
import sys

alpha = [chr(i) for i in range(97,97+26)]
line = ""

for l in sys.stdin:
    line += l.lower()
    
for i in alpha:
    print("{0} : {1}".format(i, line.count(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 key in sorted(dic):
    print("{} : {}".format(key,dic[key]))

Solution (Python):
import fileinput

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

for line in fileinput.input():
	for char in list(line):
		c = char.lower()
		if c in dict:
			dict[c] += 1


for i in range(ord("a"), ord("z") + 1):
	print(chr(i), ":", dict[chr(i)])

Solution (Python):
alphabet = {chr(c):0 for c in range(ord("a"),ord("z")+1)}
s = ""
while True:
    try:
        s += input().lower()
    except:
            break

for i in s:
    if i in alphabet:
        alphabet[i] += 1

for key in range(ord("a"),ord("z")+1):
    ck = chr(key)
    print("%s : %d" % (ck,alphabet[ck]))

Solution (Python):
str = ''
while True:
	try:
		a = input().lower()
		str = str + a
	except EOFError:
		break

for i in 'abcdefghijklmnopqrstuvwxyz':
	print('{0} : {1}'.format(i, str.count(i)))

Solution (Python):


import sys

a = sys.stdin.readlines()
b = []

for i in a:
		for j in i:
			b.append(j.lower())
for i in range(97, 97+26):
	print chr(i)+" : "+str(b.count(chr(i)))

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

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ''

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines =''
while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key,count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break
        
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key, in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = "" 

while True:
    try:
        lines += input().lower()
    except EOFError:
        break
        
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
        
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string
 
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
 
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
         
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
         
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
            count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string
  
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
  
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
          
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
          
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ''

while 1:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string
  
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
  
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
          
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
          
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string
   
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
   
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
           
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
           
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
import string
count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Solution (Python):
s = ""
while True:
    try:
        s += input().lower()
    except:
        break

dic = {}
orda = ord("a")
ordz = ord("z")

for c in s:
    if orda <= ord(c) <= ordz:
        try:
            dic[c] += 1
        except:
            dic[c] = 1

for i in range(orda,ordz + 1):
    c = chr(i)
    try:
        print("%s : %d" % (c, dic[c]))
    except:
        print("%s : %d" % (c, 0))

Solution (Python):
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Solution (Python):
from collections import OrderedDict
import sys

cnt = OrderedDict()
for i in range(ord('a'), ord('z') + 1):
    cnt[chr(i)] = 0

S = sys.stdin.readlines()
for s in S:
    s = s.lower()
    for i in s:
        if i in cnt:
            cnt[i] += 1

for k, v in cnt.items():
    print('{} : {}'.format(k, v))

Solution (Python):
import sys
uppers = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
lowers = 'abcdefghijklmnopqrstuvwxyz'
s = []
for line in sys.stdin:
    s += line
for i in range(26):
    print(lowers[i] + ' : ' + str(s.count(uppers[i]) + s.count(lowers[i])))

Solution (Python):

tset = [0] * 27
while 1:
 try:
  str = raw_input().lower()
  a = ord('a')
  for c in str:
   tset[ord(c)-a if c.islower() else 26] += 1
 except EOFError:
  for c in xrange(26):
   print "{0} : {1}".format(chr(a+c), tset[c])
  break

Solution (Python):
import sys
s = []
for line in sys.stdin:
    s += line.lower()
A = 'abcdefghijklmnopqrstuvwxyz'
for c in A:
    print(c+' : {}'.format(s.count(c)))

Solution (Python):
import sys

s = []
for line in sys.stdin:
    s.extend(list(line.lower()))  

alphabet = "abcdefghijklmnopqrstuvwxyz"

for i in alphabet:
    print(i + " : " + str(s.count(i)))

Solution (Python):
count = [0 for i in range(26)]
while(1):
    try:
        str = raw_input().lower()
    except EOFError:
            break
    
    for i in range(len(str)):
        k = 97
        for j in range(26):
            if str[i] == chr(k):
                count[j] += 1
            k += 1

k = 97
for i in range(26):
    print "%s : %d" % (chr(k), count[i])
    k += 1

Solution (Python):
y = ""
while True:
    try:
        c = raw_input().lower()
        y = y + c
    except:
        break

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

Solution (Python):
import string
s = ''
while True:
    try:
        s += input().lower()
    except EOFError:
        break
for a in string.ascii_lowercase:
    print('{0} : {1}'.format(a, s.count(a)))

Solution (Python):
import sys
import string
s = sys.stdin.read().lower()
for a in string.ascii_lowercase:
    print('{0} : {1}'.format(a, s.count(a)))

Solution (Python):
import sys
import string

text = ""
for line in sys.stdin:
    text += line

character_count_map = {}

for c in text.lower():
    if c not in character_count_map:
        character_count_map[c] = 0
    character_count_map[c] += 1

for c in string.ascii_lowercase:
    if c in character_count_map:
        print(c, ":", character_count_map[c])
    else:
        print(c, ":", 0)

Solution (Python):
import sys 
dataset = sys.stdin.readlines()

for s in range(ord('a'), ord('z') + 1):
 count = 0
 for data in dataset:
  count += data.lower().count(chr(s))
 print("{0} : {1}".format(chr(s), count))

Solution (Python):
import sys
sentence = ''
data = 'abcdefghijklmnopqrstuvwxyz'
for line in sys.stdin:
    sentence += line.lower()
for i in data:
    print(i + ' : ' + str(sentence.count(i)))

Solution (Python):
import sys
alphabet = "abcdefghijklmnopqrstuvwxyz"
dictionary = {}
for character in alphabet:
    dictionary[character] = 0

for line in sys.stdin:
    for character in line.strip():
        if character.lower() in dictionary:
            dictionary[character.lower()] += 1

for character in alphabet:
    print(character + ' : ' + str(dictionary[character]))

Solution (Python):
import sys

s = ''
for line in sys.stdin:
    s += line
s = s.lower()
count = {letter: s.count(letter) for letter in set(s)}
for c in range(97,97+26):
    if chr(c) in count:
        print("%c : %d" % (chr(c), count[chr(c)]))
    else:
        print("%c : 0" % chr(c))

Solution (Python):
import sys
if __name__ == '__main__':
    letter_counts = [0] * 26  
    for line in sys.stdin:

        
        lower_text = line.lower()

        
        for c in lower_text:
            if 'a' <= c <= 'z':
                letter_counts[ord(c)-ord('a')] += 1

    
    for i, n in enumerate(letter_counts):
        print('{0} : {1}'.format(chr(ord('a')+i), n))

Solution (Python):
ms = ""
dic = {k: int(0) for k in [chr(i) for i in range(97, 123)]}
while True:
    try:
        inp = input()
        ms += inp
    except:
        break

for i in ms.lower():
    if ord(i) >= 97 and ord(i) <= 122:
        dic[i] += 1

for k, v in sorted(dic.items(), key=lambda x: x[0]):
    print("{0} : {1}".format(k, v))

Solution (Python):
import string

alphabets = {k:0 for k in string.ascii_lowercase}

while True:
  try:
    for c in input().lower():
      if alphabets.get(c) is None:
        continue
      alphabets[c] += 1
  except:
    break
for c, n in sorted(alphabets.items()):
  print("{} : {}".format(c, n))

Solution (Python):
import sys
a=[0 for _ in range(26)]
for s in sys.stdin:
    for c in s.lower():
        if 'a' <= c <= 'z':
            a[ord(c) - 97] += 1
for i,v in enumerate(a):
    print(chr(i+97) + " : " + str(v))

Solution (Python):
s=""
import fileinput
a=fileinput.input()
for i in a:
	s+=i
s=list(s)
res=[0 for i in range(26)]
for i in s:
	if i.isalpha():
		i=i.lower()
		res[ord(i)-ord("a")]+=1

for i in range(26):
	s=chr(i+ord("a"))+" : "+str(res[i])
	print(s)

Solution (Python):
import sys
sen=[]
for line in sys.stdin:
    sen.append(line)
Sen=''.join(sen)

a=[]
b=[]
c=[]
d=[]
e=[]
f=[]
g=[]
h=[]
i=[]
j=[]
k=[]
l=[]
m=[]
n=[]
o=[]
p=[]
q=[]
r=[]
s=[]
t=[]
u=[]
v=[]
x=[]
y=[]
z=[]
w=[]
count={'a':a,'b':b,'c':c,'d':d,'e':e,'f':f,'g':g,'h':h,'i':i,'j':j,'k':k,'l':l,'m':m,'n':n,'o':o,'p':p,'q':q,'r':r,'s':s,'t':t,'u':u,'v':v,'w':w,'x':x,'y':y,'z':z}
for i in range(len(Sen)):
    if Sen[i].isalpha():
        count[Sen[i].lower()].append('
for char in sorted(count.keys()):
    print('%s : %d'%(char,len(count[char])))

Solution (Python):


c_al = [0] * 26

while True:
    try:
        s = input()
        for i in s:
            if i.isalpha():
                c_al[ord(i.lower()) - ord("a")] += 1
    except EOFError:
        break

for i in range(ord("a"),ord("a")+26):
    print("{0} : {1}".format(chr(i),c_al[i - ord("a")]))

Solution (Python):
import collections
import sys
S = "".join([line for line in sys.stdin])
count = collections.Counter(S.lower())
for char in "abcdefghijklmnopqrstuvwxyz":
    print("{0:s} : {1:d}".format(char, count[char]))

Solution (Python):
import sys
d=[0 for i in range(26)]
for line in sys.stdin:
    for c in line:
        x = ord(c)
        if ord('A')<=x and x<=ord('Z'):
            x -= (ord('A')-ord('a'))
        if ord('a')<=x and x<=ord('z'):
            d[x-ord('a')] += 1   

for i in range(26):
    print("%s : %d" % (chr(ord('a')+i),d[i]))

Solution (Python):
text = ''
while True:
    try:
        s = input().lower()
    except EOFError:
        break
    if s == '':
        break
    text += s
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i+' : '+str(text.count(i)))

Solution (Python):
import sys

cnt = [0]*26
for line in sys.stdin:
    for a in line:
        if(ord(a) >= 65 and ord(a) <= 90):
            cnt[ord(a) - 65] += 1
        if(ord(a) >= 97 and ord(a) <= 122):
            cnt[ord(a) - 97] += 1

for i in xrange(26):
    print unichr(97 + i) + " : " + str(cnt[i])

Solution (Python):
table = "abcdefghijklmnopqrstuvwxyz"
array = ''
while True:
    try:
        array += str(input().lower())
    except EOFError:
        break

for i in table:
    print(i + " : " + str(array.count(i)))

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

Solution (Python):
import sys
import string

s = sys.stdin.read().lower()
for c in string.ascii_lowercase:
    print(c, ":", s.count(c))

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

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

Solution (Python):
'''
ITP-1_8-C
 ?????????????????????
?????????????????±??????????????????????????¢???????????????????????°?????°??????????????°????????????????????????????????? 
??????????°?????????¨??§??????????????\???????????????
???Input
?????°????????????????????????????????±???????????????????????????
???Output
?????????????????±???????????????????????¢???????????????????????°?????\??????????????¢?????§????????????????????????
a : a????????°
b : b????????°
c : c????????°
  .
  .
z : z????????°
'''





















































































import sys
string = []
for line in sys.stdin:
    string += line.lower()
A = 'abcdefghijklmnopqrstuvwxyz'
for cnt0 in A:
    print(cnt0+' : {}'.format(string.count(cnt0)))

Solution (Python):
import sys
import string

count = {}

for key in list(string.ascii_lowercase):
    count[key] = 0

for line in sys.stdin:
    for case in line:
        case = case.lower()
        if count.get(case) != None:
            count[case] += 1

keys = list(count.keys())

keys.sort()
for key in keys:
    print ("%s : %s"%(key,count[key]))

Solution (Python):
import sys

a = sys.stdin.read()
alphabet = "abcdefghijklmnopqrstuvwxyz"

for i in alphabet:
    print(i + " : " + str(a.lower().count(i)) )

Solution (Python):
import sys


fin = sys.stdin

sentence = fin.read()
sentence = sentence.lower()

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

for c in sentence:
	if ord(c) < ord('a') or ord(c) > ord('z'):
		continue

	num_alphabet_list[ord(c) - ord('a')] += 1

for i in range(0, 26):
	print(chr(i + ord('a')), end="")
	print(" : ", end="")
	print(num_alphabet_list[i])

Solution (Python):


import sys


def main():
    passage = str()
    alphabets = 'abcdefghijklmnopqrstuvwxyz'

    for line in sys.stdin:
        passage += line.lower()

    for alphabet in alphabets:
        print('%s : %d' % (alphabet, passage.count(alphabet)))


if __name__ == '__main__':
    main()

Solution (Python):


import sys


def main():
    text = str()
    alphabets = 'abcdefghijklmnopqrstuvwxyz'

    for line in sys.stdin:
        text += line.lower()

    for alphabet in alphabets:
        print('%s : %d' % (alphabet, text.count(alphabet)))


if __name__ == '__main__':
    main()

Solution (Python):
s =""
while True:
    try:
        s += input().lower()
    except:
        break
    
s = list(map(ord,list(s)))
for i in range(ord("a"),ord("z")+1):
    print(chr(i) + " : " + str(s.count(i)))

Solution (Python):
sentence = ''

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

orda = ord('a')
ordz = ord('z')

for i in range(orda, ordz+1):
	counter = sentence.count(chr(i))
	print("{} : {}".format(chr(i), counter))

Solution (Python):
s = ""
while True:
    try:
        s += input()
    except:
        break
    
l = list(s.lower())
alphabet = list("abcdefghijklmnopqrstuvwxyz")
c = [l.count(alphabet[i]) for i in range(26)]
for i in range(26):
    print("{} : {}".format(alphabet[i],c[i]))

Solution (Python):
str = ''
while True:
    try:
        sent = raw_input()
    except:
        break
    str += sent.lower()

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

Solution (Python):
import sys

alp = "abcdefghijklmnopqrstuvwxyz"
s = []
for line in sys.stdin:
    s += line.lower()
for i in alp:
    print(i + " : " +str(s.count(i)))

Solution (Python):
import sys
word = [chr(i) for i in range(97, 97+26)]
word_number = []
lines = ""
for line in sys.stdin:
    lines += line

for target in word:
    count = 0
    for character in lines:
        if character.lower() == target:
            count += 1
    word_number.append(count)

for i in range(26):
    print("{0} : {1}".format(word[i],word_number[i]))

Solution (Python):
import sys

char = "abcdefghijklmnopqrstuvwxyz"
inp = sys.stdin.read()
for char_tmp in char:
    print(char_tmp + ' : ' + str(inp.lower().count(char_tmp)))

Solution (Python):
table = "abcdefghijklmnopqrstuvwxyz"
array = ''
while True:
    try:
        array += str(input().lower())
    except EOFError:
        break

for i in table:
    print(i + " : " + str(array.count(i)))

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):
list_str2 = [0 for i in range(26)]

while(1):
	try:
		list_str1 = list(input())
		
	except:
		break
	for i in range(len(list_str1)):
		if 97 <= ord(list_str1[i].lower()) <= 122:
			list_str2[ord(list_str1[i].lower())-97] += 1

for i in range(26):
	print(chr(97+i)+' : '+str(list_str2[i]))

Solution (Python):
sentence = ''
while True:
    try:
        sentence += input().lower()
    except:
            break
 
for i in range(ord('a'), ord('z') + 1):
    print('{} : {}'.format(chr(i),sentence.count(chr(i))))

Solution (Python):
import sys
alf = []
countchan = []
for i in range(26):
    alf.append(chr(ord("a")+i))
    countchan.append(0)
for i in sys.stdin.readlines():
    for i2 in range(26):
        countchan[i2] += i.count(chr(ord("a")+i2))
        countchan[i2] += i.count(chr(ord("A")+i2))
for i in range(26):
    print(alf[i]+" : "+str(countchan[i]))

Solution (Python):
res = []
import string
sam = string.ascii_lowercase

for mak in sam : res.append([mak,0])

import fileinput
for mak in fileinput.input() :
    for tem in mak.lower() :
        num = sam.find(tem)
        if num != -1 : res[num][1] += 1
        
for mak in range(26) : print('{} : {}'.format(res[mak][0],res[mak][1]))

Solution (Python):
chrs = [chr(i) for i in range(97,97+26)]
state = ""
while True:
    try:
        state += input()
    except:
        break
state = state.lower()
for i in chrs:
    print(i+" : "+str(state.count(i)))

Solution (Python):
count={}
for i in range(97,97+26):
    count[chr(i)] = 0

text=[]
while True:
    try:
        text.append(input())
    except EOFError:
        break

text_out="".join(text)
text_lower=text_out.lower()

for letter in text_lower:
    if letter in count:
        count[letter] += 1

for x,y in sorted(count.items()):
    print("{0} : {1}".format(x,y))

Solution (Python):


import sys
import os
from collections import defaultdict



alphabets = 'abcdefghijklmnopqrstuvwxyz'
d = defaultdict(int)

for s in sys.stdin:
    for c in s:
        c2 = c.lower()
        if c2 in alphabets:
            d[c2] += 1

for c in alphabets:
    print('{} : {}'.format(c, d[c]))

Solution (Python):
alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict
import sys

adict = defaultdict(int)

for l in sys.stdin:
    for c in l.lower():
        adict[c] += 1
        
for k in alphabet:
    print('%s : %i' %(k, adict[k]))

Solution (Python):
import sys

count = [0 for _ in range(26)]

for line in sys.stdin:
    array = line
    char = ["" for _ in range(len(array))]
    for i in range(len(array)):
        char[i] = array[i:i+1]
    for c in char:
        for i in range(26):
            if c == chr(i+ord("A")) or c == chr(i+ord("a")):
                count[i] += 1


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

Solution (Python):


 
from collections import Counter
 
def func():
    inputdata=""
    while(True):
        try:
            line=input()
            inputdata+=line
        except EOFError:
                break
        except:
            return inputError()

    alphabets_small=[ chr(i) for i in range(97,97+26) ]

    counter=Counter(inputdata.lower())
    data=dict(counter)

    for char in alphabets_small:
        try:
            print(char+" : "+str(data[char]))
        except:
            print(char+" : 0")
    

def inputError():
    print("input Error")
    return -1
 
func()

Solution (Python):


letters = []
for i in range(26):
    letters.append(chr(i + 97) + " : ")

contents = []
while True:
    try:
        text = input()
    except EOFError:
        break
    contents.append(text)




i = 0
for y in letters:
    value = 0
    for text in contents:
        for x in text:
            if x.isupper():
                x = x.lower()
                if x in y:
                    value += 1
            elif x.islower():
                if x in y:
                    value += 1
    letters[i] = letters[i] + str(value)
    i += 1

for x in letters:
    print(x)

Solution (Python):
import sys
s = sys.stdin.read().lower()
for i in range (ord('a'), ord('z')+1):
	print(str(chr(i)), str(s.count(chr(i))), sep=' : ')

Solution (Python):
import string
from sys import stdin

chs = dict([(ch, 0) for ch in string.ascii_lowercase])

for line in stdin:
    for ch in line:
        c = ch.lower()

        if c not in chs:
            continue

        chs[c] += 1

for ch in string.ascii_lowercase:
    print(ch, ':', chs[ch])

Solution (Python):
import sys
from collections import OrderedDict
AZC = OrderedDict((chr(i), 0) for i in range(97,97+26))

import fileinput
for line in fileinput.input():
 S = line.strip().lower()
 for i in S:
  if i in AZC:
   AZC[i] += 1

for  s, n in AZC.items():
 print(s + " : " + str(n))

Solution (Python):
import sys
strs = sys.stdin.readlines()
for c in range(ord('a'), ord('z') + 1):
    count = 0
    for str in strs:
        count += str.lower().count(chr(c))
    print('{0} : {1}'.format(chr(c), count))

Solution (Python):
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Solution (Python):



mo =""
moji_m =""

while True:
    try:
        mo = input().lower()
        moji_m += mo
    except:
        break


moji = list(moji_m.lower())
moji_l = list("abcdefghijklmnopqrstuvwxyz")
moji_c = [0 for i in range(26)]

for i in moji:
    
    if i.isalpha() == False:
        pass
    else:
        moji_c[moji_l.index(i)] += 1

for i in range(26):
    print(str(moji_l[i]) + " : " +str(moji_c[i]))

Solution (Python):



mo =""
moji_m =""

while True:
    try:
        mo = input().rstrip().lower()
        moji_m += mo
    except:
        break


moji = list(moji_m.lower())
moji_l = list("abcdefghijklmnopqrstuvwxyz")
moji_c = [0 for i in range(26)]

for i in moji:
    
    if i.isalpha() == False:
        pass
    else:
        moji_c[moji_l.index(i)] += 1

for i in range(26):
    print(str(moji_l[i]) + " : " +str(moji_c[i]))

Solution (Python):
import sys
alp = [["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]]
for line in sys.stdin:
    s = line.lower()
    for i in range(len(s)):
        for j in range(len(alp)):
            if s[i] == alp[j][0]:
                alp[j][1] += 1
                break
for i in range(len(alp)):
    print("{0} : {1}".format(alp[i][0], alp[i][1]))

Solution (Python):
dic = {}
while True:
    try:
        line = raw_input()
    except:
        break
    for i in line.lower():
        if i in dic:
            dic[i] += 1
        else:
            dic[i] = 1

for i in xrange(97, 123):
    output = 0
    if chr(i) in dic:
        output = dic[chr(i)]
    print "%s : %d" % (chr(i), output)

Solution (Python):
import sys
s=""
for line in sys.stdin:
    s+=line.lower()
alphabet=list("abcdefghijklmnopqrstuvwxyz")
for i in alphabet:
    print("{} : {}".format(i, s.count(i)))

Solution (Python):
import sys
strs = sys.stdin.readlines()
for c in range(ord('a'), ord('z') + 1):
    count = 0
    for s in strs:
        count += s.lower().count(chr(c))
    print('{0} : {1}'.format(chr(c), count))

Solution (Python):
import sys

charas = 'abcdefghijklmnopqrstuvwxyz'

data = []
for line in sys.stdin:
    data.append(line)
for chara in charas:
    cnt = 0
    for row in data:
        cnt += row.count(chara)
        cnt += row.count(chara.upper())
    print('{} : {}'.format(chara, cnt))

Solution (Python):
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Solution (Python):
try:
    a=""
    while True:
        S=input()
        if not S:
            break
        S=S.lower()
        a=a+S
except EOFError:
    pass
for i in range(97,97+26):
    
    b=a.count(chr(i))
    print(chr(i)+" : "+str(b))

Solution (Python):
try:
    a=""
    while True:
        S=input()
        if not S:
            break
        S=S.lower()
        a=a+S
except EOFError:
    pass
for i in range(97,97+26):
    b=a.count(chr(i))
    print(chr(i)+" : "+str(b))

Solution (Python):
import string
import sys

table = {c: 0 for c in string.ascii_lowercase}

for raw in sys.stdin.read():
    c = raw.lower()
    if c in string.ascii_lowercase:
        table[c] += 1

for key in string.ascii_lowercase:
    print('{:s} : {:d}'.format(key, table[key]))

Solution (Python):
sen = ''
while True:
    try:
        sen += input().lower()
    except:
        break
res = [0 for i in range(26)]
for c in sen:
    if 'a' <= c <= 'z':
        res[ord(c)-ord('a')] += 1
alp = [chr(i) for i in range(ord('a'), ord('z')+1)]
for i in range(26):
    print(alp[i] + ' : ' + str(res[i]))

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

chardict = {chr(i):0 for i in range(97, 97+26)}
str1 = sys.stdin.read()
str1 = re.sub('[^a-z]', '', str1.lower())
counter = Counter(str1)
for word in counter:
    chardict[word] = counter[word]
charlist = sorted(chardict.items())
for x in charlist:
    print(x[0] + ' : ' + str(x[1]))

Solution (Python):
import sys
cs = { c : 0 for c in list("abcdefghijklmnopqrstuvwxyz")}
for c in list(sys.stdin.read()):
    c = c.lower()
    if c in cs.keys():
        cs[c] = cs[c] + 1
for (c,cnt) in sorted(list(cs.items())):
    print('{0} : {1}'.format(c,cnt))