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:
count = {} #a~zの出現回数を記録
for i in range(26):
    count[(i)] = 0

text = []
while True:
    try:
        text = raw_input()
    except:
        break
    for i in range(len(text)):
        if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
            count[(ord(text[i]))-ord('a')] += 1
        if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
            count[(ord(text[i]))-ord('A')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])

Submission status: Runtime Error

Solution code:
x=input()

alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]

cnt=[i*0 for i in range(ord("a"),ord("z")+1)]

for k in alpha
  cnt[k]=x.count(alpha[k])
  print(alpha[k]:cnt[k])

Submission status: Runtime Error

Solution code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import string
import itertools

key = list(string.ascii_lowercase)
value = list([0 for x in range(0, 26)])
d = dict(itertools.izip(key, value))

n = "".join("".join("".join(sys.stdin.readlines()).split('\n')).split(' '))

for i in n:
    if i.isalpha():
        d[i] += 1

for key, value in d.iteritems():
    print key, ':', value

Submission status: Runtime Error

Solution code:
x=input()

alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]

cnt=[i*0 for i in range(ord("a"),ord("z")+1)]

for k in alpha :
  cnt[ord("k")-ord("k")]=x.count(k)
  print(k:cnt[ord("k")-ord("k")])

Submission status: Runtime Error

Solution code:
import sys

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


line = sys.stdin.readlines().rstrip()
for i in range( len( line ) ):
	if line[i].isalpha():
		chash[ line[i].lower() ] += 1

for i in range( ord( 'a' ), ord( 'z' ) ):
	print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )

Submission status: Runtime Error

Solution code:
import sys

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

line = sys.stdin.readlines().rstrip()
for i in range( len( line ) ):
	if line[i].isalpha():
		chash[ line[i].lower() ] += 1

for i in range( ord( 'a' ), ord( 'z' ) ):
	print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )

Submission status: Runtime Error

Solution code:
import sys

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

lines = sys.stdin.readlines().rstrip()
for i in range( len( lines ) ):
	for j in range( len( lines[i] ) ):
		if lines[i][j].isalpha():
			chash[ lines[i][j].lower() ] += 1

for i in range( ord( 'a' ), ord( 'z' ) ):
	print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )

Submission status: Runtime Error

Solution code:
x=input().lower()

alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]

cnt=[i*0 for i in range(ord("a"),ord("z")+1)]

for k in alpha :
  cnt[k-ord(alpha[k])]=x.count(alpha[k])
  print(alpha[k] ,':', cnt[k])

Submission status: Runtime Error

Solution code:
lit=raw_input().lower()
Dic={'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 i in lit:
	Dic[i]+=1
Key=Dic.keys()
Key.sort()
for key in Key:
	print key, ":" ,Dic[key]

Submission status: Runtime Error

Solution code:
dic = {}
for i in xrange(97, 123):
  dic.setdefault(chr(i), 0)

while True:
  input = raw_input()
  if input == "" or input == None:
    break
  for i in xrange(len(input)):
    if input[i].lower() in dic:
      dic[input[i].lower()] += 1

  # print dic
  for i in xrange(97, 123):
    print chr(i) + " : " + str(dic[chr(i)])

Submission status: Runtime Error

Solution code:
dic = {}
for i in xrange(97, 123):
  dic.setdefault(chr(i), 0)

while True:
  input = raw_input()
  if input == "" or input == None:
    break
  for i in xrange(len(input)):
    if input[i].lower() in dic:
      dic[input[i].lower()] += 1

  # print dic
for i in xrange(97, 123):
  print chr(i) + " : " + str(dic[chr(i)])

Submission status: Runtime Error

Solution code:
dic = {}
for i in xrange(97, 123):
  dic.setdefault(chr(i), 0)

input = "hoge"
while input != "":
  input = raw_input()
  for i in xrange(len(input)):
    if input[i].lower() in dic:
      dic[input[i].lower()] += 1

  # print dic
for i in xrange(97, 123):
  print chr(i) + " : " + str(dic[chr(i)])

Submission status: Runtime Error

Solution code:
dic = {}
for i in xrange(97, 123):
  dic.setdefault(chr(i), 0)

input = "hoge"
flag = False
while input != "":
  input = raw_input()
  for i in xrange(len(input)):
    if input[i].lower() in dic:
      dic[input[i].lower()] += 1
    elif input[i] == ".":
      flag = True
      break
  if flag == True:
    break

  # print dic
for i in xrange(97, 123):
  print chr(i) + " : " + str(dic[chr(i)])

Submission status: Runtime Error

Solution code:
dic = {}
for i in xrange(97, 123):
  dic.setdefault(chr(i), 0)

input = raw_input()
flag = False
while input != "":
  for i in xrange(len(input)):
    if input[i].lower() in dic:
      dic[input[i].lower()] += 1
    elif input[i] == ".":
      flag = True
      break
  if flag == True:
    break
  input = raw_input()

  # print dic
for i in xrange(97, 123):
  print chr(i) + " : " + str(dic[chr(i)])

Submission status: Runtime Error

Solution code:
import collections
import string
??
def solve(s):
????????s = s.lower()
????????counter = collections.Counter(s)
????????lows = string.ascii_lowercase
????????cnt = [counter[ch] for ch in lows]
????????for (ch, n) in zip(lows, cnt):
????????????????print('{0} : {1}'.format(ch, n))
??
if __name__ == '__main__':
????????s = ''
????????while True:
????????????????try:
????????????????????????s += input()
????????????????except:
????????????????????????break
????????solve(s)

Submission status: Runtime Error

Solution code:
using namespace std;
 
int main(void){
    char c;
    int num[26]={};
    while (scanf("%c",&c) != EOF) {
        c = tolower(c);
        if (c >= 'a' && c<='z') num[c-'a']++;
    }
    for (int i = 0; i < 26; i++) {
        printf("%c : %d\n", i+'a',num[i]);
    }
    return 0;
}

Submission status: Runtime Error

Solution code:
docs = ''
while True:
    docs += (raw_input().lower())
    if docs[len(docs)-1] == '.':
        break
for ascii_num in range(97, 123):
    print '%s : %d' % (chr(ascii_num), docs.count(chr(ascii_num)))

Submission status: Runtime Error

Solution code:
alphabet = [0]*26
i = 0;
for j in range(97,123):
	alphabet[i] = chr(j)
	i += 1
al_count = [0]*26
while True :
	words = raw_input().lower().split()
	for k in words :
		for l in list(k):
			if l=='a':
				al_count[0] += 1
			elif l=='b':
				al_count[1] += 1
			elif l=='c':
				al_count[2]+=1	
			elif l=='d':
				al_count[3] += 1
			elif l=='e':
				al_count[4]+=1
			elif l=='f':
				al_count[5] += 1
			elif l=='g':
				al_count[6]+=1
			elif l=='h':
				al_count[7] += 1
			elif l=='i':
				al_count[8]+=1
			elif l=='j':
				al_count[9] += 1
			elif l=='k':
				al_count[10]+=1	
			elif l=='l':
				al_count[11] += 1
			elif l=='m':
				al_count[12]+=1	
			elif l=='n':
				al_count[13] += 1
			elif l=='o':
				al_count[14]+=1
			elif l=='p':
				al_count[15] += 1
			elif l=='q':
				al_count[16]+=1
			elif l=='r':
				al_count[17] += 1
			elif l=='s':
				al_count[18]+=1
			elif l=='t':
				al_count[19] += 1
			elif l=='u':
				al_count[20]+=1
			elif l=='v':
				al_count[21]+=1
			elif l=='w':
				al_count[22] += 1
			elif l=='x':
				al_count[23]+=1
			elif l=='y':
				al_count[24] += 1
			elif l=='z':
				al_count[25]+=1
	if list(words[-1])[-1]=='.':
		break
for i in range(26):
	print '%c : %d' %(alphabet[i],al_count[i])

Submission status: Runtime Error

Solution code:

alphabet = [0]*26
i = 0;
for j in range(97,123):
	alphabet[i] = chr(j)
	i += 1
al_count = [0]*26
while True :
	words = raw_input().lower().split()
	for k in words :
		for l in list(k):
			if l=='a':
				al_count[0] += 1
			elif l=='b':
				al_count[1] += 1
			elif l=='c':
				al_count[2]+=1	
			elif l=='d':
				al_count[3] += 1
			elif l=='e':
				al_count[4]+=1
			elif l=='f':
				al_count[5] += 1
			elif l=='g':
				al_count[6]+=1
			elif l=='h':
				al_count[7] += 1
			elif l=='i':
				al_count[8]+=1
			elif l=='j':
				al_count[9] += 1
			elif l=='k':
				al_count[10]+=1	
			elif l=='l':
				al_count[11] += 1
			elif l=='m':
				al_count[12]+=1	
			elif l=='n':
				al_count[13] += 1
			elif l=='o':
				al_count[14]+=1
			elif l=='p':
				al_count[15] += 1
			elif l=='q':
				al_count[16]+=1
			elif l=='r':
				al_count[17] += 1
			elif l=='s':
				al_count[18]+=1
			elif l=='t':
				al_count[19] += 1
			elif l=='u':
				al_count[20]+=1
			elif l=='v':
				al_count[21]+=1
			elif l=='w':
				al_count[22] += 1
			elif l=='x':
				al_count[23]+=1
			elif l=='y':
				al_count[24] += 1
			elif l=='z':
				al_count[25]+=1
	if words==[]:
		break
for i in range(26):
	print '%c : %d' %(alphabet[i],al_count[i])

Submission status: Runtime Error

Solution code:

    while True:
        try:
            yield ''.join(raw_input().strip())
        except EOFError:
            break
inlist = list(get_input())
instr = "".join(inlist)
instr = instr.lower()
ascstart = 97
ascfin = 122
strlist = [0 for i in xrange(97,122+1)]
# print len(strlist)
for x in xrange(len(instr)):
    if ord(instr[x]) < ascstart or ord(instr[x]) > ascfin:
        continue
    strlist[ord(instr[x])-ascstart] +=1

for x in xrange(ascstart,ascfin+1):
    print "%s : %d" % (chr(x),strlist[x-ascstart])

Submission status: Runtime Error

Solution code:
sent=""
while True:
    ex=input().lower()
    if len(ex)==0:
        break
    sent+=ex
for i in range(ord("a"),ord("z")+1):
    x=sent.count(chr(i))
    print(chr(i),":",x)

Submission status: Runtime Error

Solution code:
sent=""
while True:
    ex=input().lower()
    print(ex)
    sent+=ex
    if ex.find('.')==1:
        break
for i in range(ord("a"),ord("z")+1):
    x=sent.count(chr(i))
    print(chr(i),":",x)

Submission status: Runtime Error

Solution code:
sent=""
while True:
    ex=input().lower()
    sent+=ex
    if ex.find('.')==1:
        break
for i in range(ord("a"),ord("z")+1):
    x=sent.count(chr(i))
    print(chr(i),":",x)

Submission status: Runtime Error

Solution code:
sent=""
while True:
    ex=input().lower()
    sent+=ex
    if ex.endswith(".")==True:
        break
for i in range(ord("a"),ord("z")+1):
    x=sent.count(chr(i))
    print(chr(i),":",x)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

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

while True:
    buf = str(raw_input())
    buf = buf.lower()
    if not buf:
        break
    for i in range(len(buf)):
        if buf[i].isalpha():
            dic[buf[i]] += 1

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

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

while True:
    buf = str(raw_input()).lower()
    if not buf:
        break
    for i in range(len(buf)):
        if buf[i].isalpha():
            dic[buf[i]] += 1

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

Submission status: Runtime Error

Solution code:
a = raw_input()
d = {}
for i in "abcdefghijklmnopqrstuvwxyz":
    d[i] = 0
for i in a:
    d[i] += 1
for i in "abcdefghijklmnopqrstuvwxyz":
    print i,':',d[i]

Submission status: Runtime Error

Solution code:
while True:
    try:
        ip+=raw_input().lower()
    except:
        break
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for i in alphabet:
    print i +' : '+ str(ip.count(i))

Submission status: Runtime Error

Solution code:
while True:
    try:
        p=raw_input().lower()
    except:
        break
    ip+=p
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for i in alphabet:
    print i +' : '+ str(ip.count(i))

Submission status: Runtime Error

Solution code:
while True:
    try:
        p=raw_input()
    except:
        break
    ip+=p.lower()
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for i in alphabet:
    print i +' : '+ str(ip.count(i))

Submission status: Runtime Error

Solution code:
text = ''
while(True):
  text += input().lower()
  if text.endswith('.'):
      break

count = [0 for i in range(26)]
for c in text:
    if c < 'a'  or c > 'z':
        continue

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

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

Submission status: Runtime Error

Solution code:
text = ''
while(True):
  text += input().lower()
  if text[-1] in ['.', '?', '!']:
      break

count = [0 for i in range(26)]
for c in text:
    if c < 'a'  or c > 'z':
        continue

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
	try:
		ul_line=str(raw_input())
		if ul_line="":
			break
		line=ul_line.lower()		

		dic_cnt={"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 i in line:
			if i in dic_cnt:
				dic_cnt[i]+=1
			else:
				pass
	except:
		break


alphabet="abcdefghijklmnopqrstuvwxyz"

for i in alphabet:
	print i,
	print ":",
	print dic_cnt[i]

Submission status: Runtime Error

Solution code:
import sys

ul_line=sys.stdin.readlines()
line=ul_line.lower()		

dic_cnt={"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 i in line:
	if i in dic_cnt:
		dic_cnt[i]+=1
	else:
		pass

alphabet="abcdefghijklmnopqrstuvwxyz"

for i in alphabet:
	print i,
	print ":",
	print dic_cnt[i]

Submission status: Runtime Error

Solution code:
while True:
	
	ul_line=raw_input()
        if ul_line==None:
                break
	line=ul_line.lower()		

	dic_cnt={"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 i in line:
		if i in dic_cnt:
			dic_cnt[i]+=1
		else:
			pass

	alphabet="abcdefghijklmnopqrstuvwxyz"
	
	for i in alphabet:
		print i,
		print ":",
		print dic_cnt[i]

Submission status: Runtime Error

Solution code:
import sys

	ul_line=sys.stdin.readlines()
	for i in ul_line:
		ul_line[i]=ul_line[i].lower()

	line=str()
	for i in ul_line:
		line+=ul_line[i]		

	dic_cnt={"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 i in line:
		if i in dic_cnt:
			dic_cnt[i]+=1
		else:
			pass

	alphabet="abcdefghijklmnopqrstuvwxyz"
	
	for i in alphabet:
		print i,
		print ":",
		print dic_cnt[i]

Submission status: Runtime Error

Solution code:
alpha = "abcdefghijklmnopqrstuvwxyz"
counts = {key:0 for key in alpha} 
while True:
    t = input()
    if t == "":
        break
    for s in t:
        c = s.lower()
        if c in alpha :
            counts[c] += 1

for key in sorted(counts):
    print(key+" : "+str(counts[key]))

Submission status: Runtime Error

Solution code:
import string
count = {x: 0 for x in string.ascii_lowercase}

s = input().lower()

for c in s:
    if 'a' <= c <= 'z':
        count[c] += 1
        
for key, num in count:
    print("{0} : {1}".format(key, num))

Submission status: Runtime Error

Solution code:
import string

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

s = input().lower()

for c in s:
    if 'a' <= c <= 'z':
        count[c] += 1
        
for key, num in count:
    print("{0} : {1}".format(key, num))

Submission status: Runtime Error

Solution code:
import string

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

s = input().lower()

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

for key, num in count:
    print("{0} : {1}".format(key, num))

Submission status: Runtime Error

Solution code:
import string
count = {x: 0 for x in string.ascii_lowercase}

s = input()
s.lower()

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

for key, num in count:
    print("{0} : {1}".format(key, num))

Submission status: Runtime Error

Solution code:
import string

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

s = input()

for c in s:
    if 'a' <= c <= 'z':
        count[c] += 1
        
for key, num in count:
    print("{0} : {1}".format(key, num))

Submission status: Runtime Error

Solution code:
#include <stdio.h>
#include <ctype.h>
#include <string.h>
 
int main() {
  int alpha;
  int cnt[256] = {0};
  while( (alpha = getchar()) != EOF ) {
    alpha = tolower( alpha );
    cnt[alpha]++;
  }
  for(alpha = 'a'; alpha <= 'z'; alpha++) {
    printf( "%c : %d\n", alpha, cnt[alpha] );
  }
  return 0;
}

Submission status: Runtime Error

Solution code:
import string

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

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

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

Submission status: Runtime Error

Solution code:
import string

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

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

s = input().lower()

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

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

Submission status: Runtime Error

Solution code:
import string

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

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

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

Submission status: Runtime Error

Solution code:
import string

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

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

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

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

Submission status: Runtime Error

Solution code:
import string

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

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import string

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

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

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

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

Submission status: Runtime Error

Solution code:
import  string

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

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

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

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

Submission status: Runtime Error

Solution code:
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, num in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Runtime Error

Solution code:
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, num in ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Runtime Error

Solution code:
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, num in ascii.lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Runtime Error

Solution code:
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, num in string.ascii_lowercase:
    print("{0} : {1}".format(key, count(key)))

Submission status: Runtime Error

Solution code:
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, num in string.asciilowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Runtime Error

Solution code:
import  string

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

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

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

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

Submission status: Runtime Error

Solution code:
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.asciilowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Runtime Error

Solution code:
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.asciilowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import string
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",10000)]
dictionary={}
alphabetlist=string.ascii_lowercase
for i in "abcdefghijklmnopqrstuvwxyz":    
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Submission status: Runtime Error

Solution code:
import string
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",10000)]
dictionary={}
alphabetlist=string.ascii_lowercase
for i in "abcdefghijklmnopqrstuvwxyz":    
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Submission status: Runtime Error

Solution code:
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",10000)]
for i in "abcdefghijklmnopqrstuvwxyz":    
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Submission status: Runtime Error

Solution code:
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",100)]
for i in "abcdefghijklmnopqrstuvwxyz":    
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Submission status: Runtime Error

Solution code:
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",100)]
    print(a)
for i in "abcdefghijklmnopqrstuvwxyz":
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Submission status: Runtime Error

Solution code:
a=[]
    for i in range(1200):
    b=input()
    if b=="":
        continue
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",100)]
for i in "abcdefghijklmnopqrstuvwxyz":
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Submission status: Runtime Error

Solution code:
a=[]
for i in range(1200):
    b=input()
    if b=="":
        continue
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",100)]
for i in "abcdefghijklmnopqrstuvwxyz":
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Submission status: Runtime Error

Solution code:
import sys
a=[]
for line in sys.stdin:
    a=a+[str(x) for x in b.lower().replace(" ","",100)]
for i in "abcdefghijklmnopqrstuvwxyz":
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Submission status: Runtime Error

Solution code:
rom collections import OrderedDict

cnt = OrderedDict()
for i in range(ord('a'), ord('z') + 1):
    cnt[chr(i)] = 0
s = input().lower()
for i in s:
    if i in cnt:
        cnt[i] += 1
for k, v in cnt.items():
    print('{}:{}'.format(k, v))

Submission status: Runtime Error

Solution code:
uppers = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
lowers = 'abcdefghijklmnopqrstuvwxyz'
s = []
while len(s) < 1200:
    s += list(input())
for i in range(26):
    print(lowers[i] + ' : ' + str(s.count(uppers[i]) + s.count(lowers[i])))

Submission status: Runtime Error

Solution code:
S = input()
Slist = list(S)
try:
    S = input()
    Slist.extend(list(S))
except EOFError:
    Slist.append([])
#??????????????????????????????
dic = {}
for i in range(26):
    cord = 97+i
    dic[chr(cord)] = 0
for i in range(len(Slist)):
    if ord("a") <= ord(Slist[i]):
        nowW = Slist[i]
    else:
        nowW = chr(ord(Slist[i]) + ord('a') - ord('A'))
    if nowW in dic:
        dic[nowW] += 1
    i += 1
for i in range(26):
    cord = 97+i
    print(chr(cord)+" : " + str(dic[chr(cord)]))

Submission status: Runtime Error

Solution code:
count = [0 for i in range(26)]
while(1):
    try:
        str = 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

Submission status: Runtime Error

Solution code:
import sys

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

count = [0]*26
for i in range(len(given)):
    if ord(given[i]) >= 97 and ord(given[i]) <= 122:
        count[ord(given[i])-97] += 1


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

Submission status: Runtime Error

Solution code:
import sys

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

count = [0]*26
for i in range(len(given)):
    if ord(input_char[i]) >= 97 and ord(input_char[i]) <= 122:
        count[ord(input_char[i])-97] += 1


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

Submission status: Runtime Error

Solution code:
n = list(input().upper())
charac = []
for j in range(65,65+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 = list(input().upper())
charac = []
for j in range(65,65+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 = list(input().lower())
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 = list(input().lower())
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 = list(raw.input().lower())
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:
k = [] 
while True:
    m = raw_input().lower()
    if m == []:
        break
    k.append(m)
n = list(k)
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:
import sys
n = list(sys.stdin.readlines().join().lower())
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])