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



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

Submission status: Runtime Error

Solution code:
n = []
while True:
    c = list(raw_input().lower())
    if c == []:
        break
    n.append(c)

a = ""
for i in n:
    a = a + "".join(i)
n = list(a)
charac = []
for j in range(97,97+26):
    m= 0
    for i in range(0,len(n)):
        if ord(n[i]) == j:
            m += 1
        charac.append("{} : {}".format(chr(j),m))

for i in range(0,26):
	print(charac[i])

Submission status: Runtime Error

Solution code:
n = []
while True:
    c = list(raw_input().lower())
    if c == []:
        break
    n.append(c)

a = ""
for i in n:
    a = a + "".join(i)
n = list(a)
charac = []
for j in range(97,97+26):
    m= 0
    for i in range(0,len(n)):
        if ord(n[i]) == j:
            m += 1
        charac.append("{} : {}".format(chr(j),m))

for i in range(0,26):
    print(charac[i])

Submission status: Runtime Error

Solution code:
n = []
while True:
    try:
        c = list(raw_input().lower())
        n.append(c)

a = ""
for i in n:
    a = a + "".join(i)
n = list(a)
charac = []
for j in range(97,97+26):
    m= 0
    for i in range(0,len(n)):
        if ord(n[i]) == j:
            m += 1
        charac.append("{} : {}".format(chr(j),m))

for i in range(0,26):
    print(charac[i])

Submission status: Runtime Error

Solution code:
n = ""
while True:
    try:
        c = raw_input().lower()
        if c != ""
            n = n + c
    except:
        break

n = list(n)
charac = []
for j in range(97,97+26):
    m= 0
    for i in range(0,len(n)):
        if ord(n[i]) == j:
            m += 1
        charac.append("{} : {}".format(chr(j),m))

for i in range(0,26):
    print(charac[i])

Submission status: Runtime Error

Solution code:
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)))

Submission status: Runtime Error

Solution code:
s = input().split()

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

Solution code:
import sys
s = []
for i in sys.stdin:
 s.append(input().lower())

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

Submission status: Runtime Error

Solution code:
s = []
while 1:
 inp = input().lower()
 if inp == null:
  break
 s.append(inp)

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

Submission status: Runtime Error

Solution code:
s = []
while 1:
 inp = input().lower()
 if inp == EOF:
  break
 s.append(inp)
for i in range(ord('a'), ord('z')+1):
 print("{0} : {1}".format(chr(i), s.count(chr(i))))

Submission status: Runtime Error

Solution code:
sentence = input()

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

for char in sentence:
    if char.isalpha():
        d[char] += 1
for key, value in sorted(d.items()):
    print('%s : %s' % (key, value))

Submission status: Runtime Error

Solution code:
sentence = input()

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

for char in sentence:
    if char.isalpha():
        d[char] += 1
for key, value in sorted(d.items()):
    print('%s : %s' % (key, value))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
alphabet = "abcdefghijklmnopqrstuvwxyz"
dictionary = {}
for character in alphabet:
    dictionary[character] = 0

for character in raw_input():
    if character.lowercase() in dictionary:
        dictionary[character.lowercase()] += 1

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

Submission status: Runtime Error

Solution code:
alphabet = "abcdefghijklmnopqrstuvwxyz"
dictionary = {}
for character in alphabet:
    dictionary[character] = 0

for character in raw_input():
    if character.lower() in dictionary:
        dictionary[character.lower()] += 1

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_C

?????????????????????

?????????????????±??????????????????????????¢???????????????????????°?????°??????????????°????????????????????????????????? ??????????°?????????¨??§??????????????\???????????????
"""

if __name__ == '__main__':
    sentence_end = False  # ????????\??????????????????????????????
    letter_counts = [0] * 26  # ?????¢????????????????????????????????° [0]???'a'???[25]???'z'??????????????°
    while sentence_end is False:
        # ??±?????????????????\???
        raw_input = input()
        if '.' in raw_input:
            sentence_end = True

        # ?°?????????¨??§??????????????\????????????
        lower_text = raw_input.lower()

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

    # ????????? 'a : a????????°' ?????¢??§z?????§1????????¨?????????
    for i, n in enumerate(letter_counts):
        print('{0} : {1}'.format(chr(ord('a')+i), n))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_C

?????????????????????

?????????????????±??????????????????????????¢???????????????????????°?????°??????????????°????????????????????????????????? ??????????°?????????¨??§??????????????\???????????????
"""

if __name__ == '__main__':
    sentence_end = False  # ????????\??????????????????????????????
    letter_counts = [0] * 26  # ?????¢????????????????????????????????° [0]???'a'???[25]???'z'??????????????°
    while sentence_end is False:
        # ??±?????????????????\???
        raw_input = input()
        if '.' in raw_input or raw_input == '':
            sentence_end = True

        # ?°?????????¨??§??????????????\????????????
        lower_text = raw_input.lower()

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

    # ????????? 'a : a????????°' ?????¢??§z?????§1????????¨?????????
    for i, n in enumerate(letter_counts):
        print('{0} : {1}'.format(chr(ord('a')+i), n))

Submission status: Runtime Error

Solution code:
import string

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

for c in input().lower():
  if c == ' ':
    continue
  alphabets[c] += 1

for c, n in sorted(alphabets.items()):
  print("{} : {}".format(c, n))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
sen=raw_input()
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 [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]:
    print('%s:%d'%(char,len(count[char])))

Submission status: Runtime Error

Solution code:
import sys
text = ''
while True:
    s = input().lower()
    if s == '':
        break
    text += s
for i in 'abcdefghijklmnopqrstuvwxyz':
    #print(i+' : '+str(s.count(i)))
    sys.stdout.write("{0} : {1}\n".format(i, text.count(i)))

Submission status: Runtime Error

Solution code:
text = ''
while True:
    s = input().lower()
    if s == '':
        break
    text += s
for i in 'abcdefghijklmnopqrstuvwxyz':
    #print(i+' : '+str(s.count(i)))
    sys.stdout.write("{0} : {1}\n".format(i, text.count(i)))

Submission status: Runtime Error

Solution code:
text = ''
while True:
    s = input().lower()
    if s == '':
        break
    text += s
for i in 'abcdefghijklmnopqrstuvwxyz':
    #print(i+' : '+str(s.count(i)))
    print("{0} : {1}\n".format(i, text.count(i)))

Submission status: Runtime Error

Solution code:
text = ''
while True:
    s = input().lower()
    if s == '':
        break
    text += s
for i in 'abcdefghijklmnopqrstuvwxyz':
    #print(i+' : '+str(s.count(i)))
    print("{0} : {1}".format(i, text.count(i)))

Submission status: Runtime Error

Solution code:
text = ''
while True:
    s = input().lower()
    if s == '':
        break
    text += s
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i+' : '+str(text.count(i)))
    #print("{0} : {1}".format(i, text.count(i)))

Submission status: Runtime Error

Solution code:
import sys
import string

dic = {}
for c in string.ascii_lowercase:
    dic[c] = 0

for c in sys.stdin.read().lower():
    if c.isalpha():
        dic[c] += 1

for c in dic:
    print(c+" : "+dic[c])

Submission status: Runtime Error

Solution code:
a = input()
alphabet = "abcdefghijklmnopqrstuvwxyz"

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

Submission status: Runtime Error

Solution code:
import sys

a = sys.stdin.readline
alphabet = "abcdefghijklmnopqrstuvwxyz"

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

Submission status: Runtime Error

Solution code:
#!usr/bin/env python3

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()

Submission status: Runtime Error

Solution code:
#!usr/bin/env python3

import sys


def main():
    letters = {
                '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
              }

    passage = sys.stdin

    for letter in passage.lower():
        if letter in letters:
            letters[letter] += 1

    for letter, count in letters.items():
        print('%s : %d' % (letter, count))


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
word = [chr(i) for i in range(97, 97+26)]
word_number = []
line = ""
while(1):
    temp_line = input() 
    line += temp_line
    if temp_line =="":
        break

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

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

Submission status: Runtime Error

Solution code:
list_str2 = [0 for i in range(26)]

while(1):
	list_str1 = list(input())
	print(list_str1)
	if list_str1 == []:
		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]))

Submission status: Runtime Error

Solution code:
alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict

adict = defaultdict(int)

while True:
    str = ''
    str = input().lower()
    if len(str) == 0:
        break
    for c in str:
        adict[c] += 1

for k in alphabet:
    print('%s : %i' %(k, adict[k]))

Submission status: Runtime Error

Solution code:
alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict

adict = defaultdict(int)

while True:
    str_in = input().lower()
    if len(str_in) == 0:
        break
    for c in str_in:
        adict[c] += 1

for k in alphabet:
    print('%s : %i' %(k, adict[k]))

Submission status: Runtime Error

Solution code:
alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict

adict = defaultdict(int)

while True:
    str_in = input().lower()
    for c in str_in:
        adict[c] += 1
    if str_in[-1] == '.':
        break

for k in alphabet:
    print('%s : %i' %(k, adict[k]))

Submission status: Runtime Error

Solution code:
alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict

adict = defaultdict(int)

while True:
    str_in = input().lower()
    for c in str_in:
        adict[c] += 1
    try:
        if str_in[-1] == '.':
            break
    except:
        break

for k in alphabet:
    print('%s : %i' %(k, adict[k]))

Submission status: Runtime Error

Solution code:
array = input()

char = ["" for _ in range(len(array))]
for i in range(len(array)):
    char[i] = array[i:i+1]

alp = [0 for _ in range(26)]
for j in range(len(array)):
    for i in range(26):
        if char[j] == chr(i+ord("A")) or c == chr(i+ord("a")):
            alp[i] += 1

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

Submission status: Runtime Error

Solution code:
import sys

array = []
for line in sys.stdin:
    array.append(line)

char = ["" for _ in range(len(array))]
for i in range(len(array)):
    char[i] = array[i:i+1]

count = [0 for _ in range(26)]
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")), alp[i]))

Submission status: Runtime Error

Solution code:
import sys

array = ""
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]

count = [0 for _ in range(26)]
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")), alp[i]))

Submission status: Runtime Error

Solution code:
a = [0 for i in range(26)]
cnt = 0
while 1:
    S = input()
    if not S:
        break
    for i in S:
        if 65 <= ord(i) and ord(i) <= 90\
        or 97 <= ord(i) and ord(i) <= 122:
            if 65 <= ord(i) and ord(i) <= 90:
                cnt = ord(i) - ord("A")
            else:
                cnt = ord(i) - ord("a")
            a[cnt] += 1
            cnt = 0
for i in range(26):
    print(chr(i + 97), ":", a[i])

Submission status: Runtime Error

Solution code:
count = {}
from string import ascii_lowercase
for c in ascii_lowercase:
    count[c] = 0 
str = input()
while str:
    sum = 0
    for c in str:
        if c.isalpha():
            count[c.lower()] += 1
    str = input()
for c in ascii_lowercase:
    print(c, ':', count[c])

Submission status: Runtime Error

Solution code:
a = [0 for i in range(26)]
cnt = 0
while True:
    S = input()
    if S == "-1":
        break
    for i in S:
        if 65 <= ord(i) and ord(i) <= 90\
        or 97 <= ord(i) and ord(i) <= 122:
            if 65 <= ord(i) and ord(i) <= 90:
                cnt = ord(i) - ord("A")
            else:
                cnt = ord(i) - ord("a")
            a[cnt] += 1
            cnt = 0
for i in range(26):
    print(chr(i + 97), ":", a[i])

Submission status: Runtime Error

Solution code:
a = [0 for i in range(26)]
w = []
while 1:
    s = input()
    if s == "-1":
        break

    w.append(s)
for i in w:
    for j in i:
        if j.isalnum():
            c = ord(j.lower())
            a[c-97] += 1
for i in range(26):
    print(chr(i+97) + " : " + str(a[i]))

Submission status: Runtime Error

Solution code:
a = [0 for i in range(26)]
w = []
while 1:
    s = input()
    if s == "-1":
        break
    w.append(s)
for i in w:
    for j in i:
        if j.isalnum():
            c = ord(j.lower())
            a[c-97] += 1
for i in range(26):
    print(chr(i+97) + " : " + str(a[i]))

Submission status: Runtime Error

Solution code:
a = [0 for i in range(26)]
while 1:
    s = input()
    if s == "-1":
        break
    print(s)
    for i in s:
        if i.isalnum():
            c = ord(i.lower())
            a[c-97] += 1

for i in range(26):
    print(chr(i+97) + " : " + str(a[i]))

Submission status: Runtime Error

Solution code:
import sys
cnts = {}
for line in imput():
    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))

Submission status: Runtime Error

Solution code:
#coding:utf-8
import sys
mo =" "
moji_m =""
while mo != "":
    mo = input().rstrip()
    moji_m += mo

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]))

Submission status: Runtime Error

Solution code:
import sys,string
lines = []
for line in sys.stdin:
    lines.append(line.lower().split())
text = ''.join(lines)
for char in string.ascii_lowercase:
    print('{}:{}'.format(char,text.count(char)))

Submission status: Runtime Error

Solution code:
s =''.join(inpu().lower().split())
import string
for char in string.ascii_lowercase:
    print('{}:{}'.format(char,s.count(char)))

Submission status: Runtime Error

Solution code:
charas = 'abcdefghijklmnopqrstuvwxyz'


for line in sys.stdin:
    data.appen(line)
for chara in chara:
    for row in data:
        cnt = row.count(chara)
        cnt += row.count(chara.upper())
    print('{} : {}'.format(chara, cnt))

Submission status: Runtime Error

Solution code:
import sys

charas = 'abcdefghijklmnopqrstuvwxyz'

for line in sys.stdin:
    data.appen(line)
for chara in chara:
    for row in data:
        cnt = row.count(chara)
        cnt += row.count(chara.upper())
    print('{} : {}'.format(chara, cnt))

Submission status: Runtime Error

Solution code:
import sys

charas = 'abcdefghijklmnopqrstuvwxyz'

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

Submission status: Runtime Error

Solution code:
while True:
    S = input().lower()
    a = [0 for i in range(26)]
    for c in S:
        if ord(c) >= 97\
        and ord(c) <= 122:
            i = ord(c) - 97
            a[i] += 1

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

Submission status: Runtime Error

Solution code:
import sys
while True:
    S = sys.stdin.readlines().lower()
    a = [0 for i in range(26)]
    for c in S:
        if ord(c) >= 97\
        and ord(c) <= 122:
            i = ord(c) - 97
            a[i] += 1

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

Submission status: Runtime Error

Solution code:
while 1 :
    x= [i for i in input()]
    s=[int(0) for i in range(26)]
    for i in range(len(x)):
        if 97<=ord(x[i].lower())<=122:
            s[ord(x[i].lower())-97]=s[ord(x[i].lower())-97]+1
    for i in range(26):
        print(chr(97+i),":",s[i])

Submission status: Runtime Error

Solution code:
s=[int(0) for i in range(26)]
while 1:
    x=[i for i in input()]
    if not x:
        break
    for i in range(len(x)):
        if 97<=ord(x[i].lower())<=122:
            s[ord(x[i].lower())-97]=s[ord(x[i].lower())-97]+1
for i in range(26):
    print(chr(97+i),":",s[i])

Submission status: Runtime Error

Solution code:
s=[int(0) for i in range(26)]
while 1:
    x=[i for i in input()]
    if x==EOF:
        break
    for i in range(len(x)):
        if 97<=ord(x[i].lower())<=122:
            s[ord(x[i].lower())-97]=s[ord(x[i].lower())-97]+1
for i in range(26):
    print(chr(97+i),":",s[i])

Submission status: Runtime Error

Solution code:
s=[int(0) for i in range(26)]
x=input()
while x:
    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
    x=input()
for i in range(26):
    print(chr(97+i),":",s[i])

Submission status: Runtime Error

Solution code:
s=[int(0) for i in range(26)]
for s in input():
    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
for i in range(26):
    print(chr(97+i),":",s[i])

Submission status: Runtime Error

Solution code:
s=[int(0) for i in range(26)]
for s in input():
    x=input()
    if x[len(list(x))-1]=='EOF':
        break
    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
    
for i in range(26):
    print(chr(97+i),":",s[i])

Submission status: Runtime Error

Solution code:
from string import ascii_lowercase as letters

data = ''
while True:
	temp = input()
	if temp == '':
		break
	else:
		data += temp.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)

Submission status: Runtime Error

Solution code:
from string import ascii_lowercase as letters

data = ''
while True:
	temp = input()
	if temp == '':
		break
	else:
		data += temp.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)
'''
print('')

Submission status: Runtime Error

Solution code:
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)]

Submission status: Runtime Error

Solution code:
t="1"
T=""
while t is not "":
    t=input()
    T += t


l=[chr(i) for i in range(97, 97+26)]
L=[chr(i) for i in range(65, 65+26)]
print (l,L)

n=0

for i in range(len(L)):
    n = T.count(str(L[i]))+T.count(str(l[i]))
    print(str(l[i])+" : "+str(n))

Submission status: Runtime Error

Solution code:
import sys

input_line = sys.stdin.readline()
    
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=input_line.lower()

for c in ch:
    print("{} : {}".format(c,s.count(c)))

Submission status: Runtime Error

Solution code:
import sys

input_line = sys.stdin.read()
    
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=input_line.lower()

for c in ch:
    print("{} : {}".format(c,s.count(c)))

Submission status: Runtime Error

Solution code:
from collections import Counter

while True:
	c = Counter(input().lower())
	if not c:
		break
	for i in iter("abcdefghijklmnopqrstuvwxyz"):
		print("{0} : {1}".format(i, c[i]))

Submission status: Runtime Error

Solution code:
import sys

Target = ""
for line in sys.stdin.readlines:
    Target += line.rstrip("\r\n")
for i in range(26):
    print(chr(i + 97), ":", Target.count(chr(i + 97)))

Submission status: Runtime Error

Solution code:
a = {chr(i): 0 for i in range(97, 123)}
print(a)
while 1:
    s = input().lower()
    for c in s:
        if c in a:
            a[c] += 1
    for c in a:
        print("{} : {}".format(c, a[c]))

Submission status: Runtime Error

Solution code:
a = {chr(i): 0 for i in range(97, 123)}
while 1:
    s = input().lower()
    for c in s:
        if c in a:
            a[c] += 1
    for c in a:
        print("{} : {}".format(c, a[c]))

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
    x = input().lower()

    for i in x:
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Runtime Error

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
    x = input().lower()
    if x == None:
        break

    for i in x:
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Runtime Error

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
    x = input().lower()
    if x == "":
        break

    for i in x:
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Runtime Error

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
    x = str(input().lower())
    if x == "":
        break

    for i in x:
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Runtime Error

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
    x = str(input().lower())
    if x == False:
        break

    for i in x:
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Runtime Error

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while x:
    x = str(input().lower())
    
    for i in x:
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Runtime Error

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
    x = input()
    if x == "":
        break
    for i in x.lower():
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Runtime Error

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
    x = input()
    if not x:
        break
    for i in x.lower():
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Runtime Error

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

string = input().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))

Submission status: Runtime Error

Solution code:
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 = ""

while True:
    I = input()
    if I == '':
        break
    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]))

Submission status: Runtime Error

Solution code:
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

while loop:
    I = input()
    for i in I:
        if i == '.':
            loop = False
    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]))

Submission status: Runtime Error

Solution code:
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

while loop:
    I = input()
    for i in I:
        if I == '.':
            loop = False
    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]))

Submission status: Runtime Error

Solution code:
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

while loop:
    I = input()
    if I == '':
        loop = False
    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]))

Submission status: Runtime Error

Solution code:
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

while loop:
    I = input()
    if not I:
        loop = False
    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]))

Submission status: Runtime Error

Solution code:
cnt_dict = { key:0 for key in "abcdefghijklmnopqrstuvwxyz"}
string = input().lower()
for i in string:
    if i == " ": continue
    cnt_dict[i] += 1
for i in cnt_dict:
    print( i + " : " + str(cnt_dict[i]) )

Submission status: Runtime Error

Solution code:
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
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 
for i in range(26):
    print('w[i:i+1], ':', str(a[i]))