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):
cnt = [0 for i in range(26)]
while True:
      try:
            s = input()
      except:
            break
      for i in range(len(s)):
            m = ord(s[i])-ord('A')
            if(m >= 0 and m < 26):
                  cnt[m]+=1
            m = ord(s[i])-ord('a')
            if(m >= 0 and m < 26):
                  cnt[m]+=1
for i in range(26):
      print(chr(i+ord('a')),":",cnt[i])

Solution (Python):
import re


def main(text):
    hash = {}
    keys = 'abcdefghijklmnopqrstuvwxyz'
    for k in keys:
        hash[k] = 0
    for char in re.findall('[a-zA-Z]', text):
        hash[char.lower()] += 1
    return list(map(lambda k: '{} : {}'.format(k, hash[k]), keys))


if __name__ == "__main__":
    text = ''
    while True:
        try:
            input_str = str(input())
        except EOFError:
            break
        text += input_str
    results = main(text)
    print('\n'.join(results))

Solution (Python):
from string import ascii_lowercase as alfa

count = {}

for i in range(len(alfa)):
    count[alfa[i]] = 0
while True:
    try:
        S = list(input())

        for i in range(len(S)):
            if S[i].isupper():
                S[i] = S[i].lower()

        for i in range(len(alfa)):
            for k in range(len(S)):
                if alfa[i] == S[k]:
                    count[alfa[i]] += 1
    
    except EOFError:
        break       
        
    
for key, value in count.items():
    print('{} : {}'.format(key, str(value)))

Solution (Python):
import sys

lines = sys.stdin.read(1200)

list = [0] * 26

for i in lines:
    if i.isalpha():
        list[ord(i.lower()) - ord('a')] += 1
for i in range(26):
    print(chr(ord('a') + i), ':', list[i])

Solution (Python):
import string
abcxyz = string.ascii_lowercase
abccount = [0]*26
while 1:
    try:
        S = input()
    except:
        for i in range(26):
            print('{0} : {1}'.format(abcxyz[i], abccount[i]))
        break
    for x in S:
        if x.lower() in abcxyz:
            abccount[abcxyz.index(x.lower())] += 1

Solution (Python):
import sys
import itertools
import math



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

alphabet = [chr(ord('a') + i) for i in range(26)]
S = read().decode('utf8').rstrip().lower()
for i in alphabet:
    print(f'{i} : {S.count(i)}')

Solution (Python):
import sys
cnts = []
alpha = "abcdefghijklmnopqrstuvwxyz"
for line in sys.stdin:
  for c in list(line.lower()):
    cnts.append(c)
for a in alpha:
      print("{} : {}".format(a,cnts.count(a)))

Solution (Python):
char_list = "abcdefghijklmnopqrstuvwxyz"
char_count = {}
for c in char_list:
    char_count[c] = 0
s = ""
while True:
    try:
        s += input().lower()
    except EOFError:
        break
for c in s:
    if c in char_count:
        char_count[c] += 1
for char, count in char_count.items():
    print("{} : {:d}".format(char, count))

Solution (Python):
import sys
import string

counter = {c: 0 for c in string.ascii_letters}
input_str = sys.stdin.read()

for char in input_str:
    char = char.lower()
    if char in string.ascii_letters:
        counter[char] += 1

for c in string.ascii_lowercase:
    v = 0 if c not in counter else counter[c]
    print('{} : {}'.format(c, v))

Solution (Python):
import sys

sm_alpha = [chr(ord('a') + i) for i in range(26)]
lg_alpha = [chr(ord('A') + i) for i in range(26)]

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

for e in sys.stdin :
    for i in range(26) :
        num_alpha[i] += e.count(sm_alpha[i])
        num_alpha[i] += e.count(lg_alpha[i])

for i in range(26) :
    print(sm_alpha[i] + " : " + str(num_alpha[i]))

Solution (Python):
import sys

table = [0]*26
alf = "abcdefghijklmnopqrstuvwxyz"

s = sys.stdin.read().lower()

for i in s:
    index = 0
    for j in alf:
        if j == i:
            table[index] += 1
            break
        index += 1

for i in range(26):
    print("%s : %d" %(alf[i], table[i]))

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readlines
ans = {chr(i):0 for i in range(ord("a"), ord("z")+1)}

for l in input():
    for _s in l:
        _s = _s.lower()
        if ord("a") <= ord(_s) <= ord("z"):
            ans[_s] += 1

for i in range(ord("a"), ord("z")+1):
    k = chr(i)
    print(k + " : " + str(ans[k]))

Solution (Python):
from collections import Counter
inputs = ''
while True:
    try:
        inputs += input()
    except:
        break


ss = []
s = [x.strip('.') for x in inputs.split()]
for si in s:
    ss += list(si.lower())

cnt = Counter(ss)

for i in range(97, 123):
    print('{} : {}'.format(chr(i), cnt[chr(i)]))

Solution (Python):
import sys
x = sys.stdin.readlines()
x = "".join(x)
for a in [chr(ord('a') + i) for i in range(26)]:
    print("{0} : {1}".format(a,x.lower().count(a)))

Solution (Python):
dic_alp= {alp:0 for alp in 'abcdefghijklmnopqrstuvwxyz'}
while True:
    try:
        txt = input()
        
        for s in txt:
            s = s.lower()
            if s in dic_alp.keys():
                dic_alp[s] += 1
    except:
        break

for k in dic_alp:
    print(f'{k} : {dic_alp[k]}')

Solution (Python):
import sys

dic = {}

for i in sys.stdin:
    for j in i:
        if j.isalpha():
            c = j.lower()
            dic[c] = dic.get(c,0) + 1
            
for i in range(26):
    c = chr(ord("a")+i)
    print(c," : ",dic.get(c,0),sep ='')

Solution (Python):

c = {}

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']:
    c[char] = 0


while True:
    try:
        s = input()
        if s == '':
            break
        
        for i in range(len(s)):
            char = s[i : i + 1]
            
            if char.isalpha():
                c[char.lower()] += 1
        
    except EOFError:
        break

for k, v in c.items():
    print(f'{k} : {v}')

Solution (Python):
alpha="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
count=[0 for i in range(26)]
test=""
while True:
    try:
        string=input()
        test+=string
    except:
        break

for i in range(len(test)):
    for j in range(26):
        if test[i]==alpha[j] or test[i]==alpha[j+26]:
            count[j]+=1
            break

for i in range(26):
    print("{} : {}".format(alpha[i],count[i]))

Solution (Python):
import sys

S = sys.stdin.read()

abc = [0 for i in range(26)]
for i in range(len(S)):
    ords = ord(S[i])
    if 65 <= ords < 65+26:
        abc[ords-65] += 1
    elif 97 <= ords < 97+26:
        abc[ords-97] += 1

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

Solution (Python):
import sys
a = []
for line in sys.stdin:
    a += line

chr = 'abcdefghijklmnopqrstuvwxyz'
for c in chr:
    cnt1 = a.count(c)
    cnt2 = a.count(c.upper())
    print(c + ' : ' + str(cnt1+cnt2))

Solution (Python):
answerAlpha = []
answerNum = []


for i in range(97, 97 + 26):
    answerAlpha.append(chr(i))
    answerNum.append(0)


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

for i in range(len(inp)):
    if inp[i] in answerAlpha:
        answerNum[answerAlpha.index(inp[i])] += 1    

[print("{} : {}".format(*answerAlpha[i], answerNum[i])) for i in range(len(answerNum))]

Solution (Python):
import sys
counter = [0] * 26
s = ""
for item in sys.stdin:
    s += item

for item in s:
    tmp = ord(item) - ord('a')
    if 0 <= tmp and tmp <= 25:
        counter[tmp] += 1

    tmp = ord(item) - ord('A')
    if 0 <= tmp and tmp <= 25:
        counter[tmp] += 1

for i in range(len(counter)):
    print(f"{chr(i+ord('a'))} : {counter[i]}")

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

Solution (Python):
import sys

chklist = ['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']

word = ''
for i in sys.stdin:
    word += i

for n in chklist:
    cnt = 0
    for w in word:
        if n.upper() == w.upper():
            cnt += 1
    print(str.format('{} : {}', n, cnt))

Solution (Python):
alphabet = 'abcdefghijklmnopqrstuvwxyz'
str_x = open(0).read().lower()
for str_a in alphabet:
    print(str_a,':',str_x.count(str_a),sep=' ')

Solution (Python):
cnt = [0]*26
while True:
    try:
        s = input().lower()
    
        for i in range(len(s)):
            m = ord(s[i]) - ord('a')
            if m >= 0 and m <= 25:
                cnt[m] += 1

    except:
        break
                
for i in range(26):
    print('{0} : {1}'.format(chr(i+ord('a')),cnt[i]))

Solution (Python):
import fileinput
T = [0 for i in range(26)]
for line in fileinput.input():
 S = list(map(int, line.encode() ))
 A = ord('A')
 Z = ord('Z')
 a = ord('a')
 z = ord('z')
 for c in S:
  if A<=c<=Z:
   T[c-A] = T[c-A]+1
  elif a<=c<=z:
   T[c-a] = T[c-a]+1
for c in range(a,z+1):
 print(chr(c),":",T[c-a])

Solution (Python):

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


for letter in "abcdefghijklmnopqrstuvwxyz":
    print(f"{letter} : {input_data.count(letter)}")

Solution (Python):
queue=[]
ans=''
al=['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']
cou=-1

while 1:
    try:
        string=input().lower()
        queue.append(string)
    except EOFError:
        break
    
for i in queue:
    ans+=i

for i in al:
    cou+=1
    print(al[cou]+' '+ ':'+' '+str(ans.count(i)))

Solution (Python):
list = [0]*26
while 1:
    try:
        a = input()
        for i in a: 
            for j in range(26):
                if ord(i) == j+65 or ord(i) == j+97:list[j] += 1
    except:break
for k in range(26):
    print(chr(k+97)+ " : "+str(list[k]))

Solution (Python):
S = open(0).read().lower()
a = [0 for i in range(26)]
for c in S:
    if ord(c) >= 97 and ord(c) <= 97+25:
        a[ord(c)-97] += 1
for i in range(26):
    print('{} : {}'.format(chr(i+97), a[i]))

Solution (Python):
import string

asclst = string.ascii_lowercase
count = [0 for i in range(len(asclst))]
string = ""
while True:
    try:
        string += input().lower()
    except EOFError:
        break


for char in string:
    for i,c in enumerate(asclst):
        if char == c:
            count[i] += 1

for i,ch in enumerate(asclst):
    print(f"{ch} : {count[i]}")

Solution (Python):
from string import ascii_lowercase, ascii_uppercase
s = open(0).read()
ans = [0]*26
for c in s:
    i = ascii_lowercase.find(c)
    if i > -1:
        ans[i] += 1
    i = ascii_uppercase.find(c)
    if i > -1:
        ans[i] += 1
for c, t in zip(ascii_lowercase, ans):
    print("%s : %d" % (c, t))

Solution (Python):
import sys
import collections
d = collections.Counter([c.lower() for c in sys.stdin.read()])
for i in range(26):
	b = bytearray('a'.encode('ascii'))
	b[0] += i
	c = b.decode('ascii')
	print("{} : {}".format(c,d[c]))

Solution (Python):
alpha = [0] * 26
S = []
while True:
    try:
        S += list(input())
    except EOFError:
        break
for s in S:
    if not s.isalpha():
        continue
    c = ord(s.lower())-97
    alpha[c] += 1
for i,a in enumerate(alpha):
    s = chr(i+97)
    print(s + ' : ' + str(a))

Solution (Python):
import sys
 
cnt = {}
 
for line in sys.stdin:
  for l in line:
    if l.isalpha():
      c = l.lower()
      cnt[c] = cnt.get(c,0)+1
 
for i in range(26):
  c = chr(ord('a')+i)
  print( c, " : ", cnt.get(c,0), sep = '' )

Solution (Python):
import string

result = {}
for char in string.ascii_lowercase:
    result[char] = 0

while True:
    try:
        words = input().lower()
    except:
        break
    
    for char in words:
        try:
          result[char] += 1
        except:
          pass

for char in string.ascii_lowercase:
    print(f"{char} : {result[char]}")

Solution (Python):
dec = {}
dec["a"] = 0
dec["b"] = 0
dec["c"] = 0
dec["d"] = 0
dec["e"] = 0
dec["f"] = 0
dec["g"] = 0
dec["h"] = 0
dec["i"] = 0
dec["j"] = 0
dec["k"] = 0
dec["l"] = 0
dec["m"] = 0
dec["n"] = 0
dec["o"] = 0
dec["p"] = 0
dec["q"] = 0
dec["r"] = 0
dec["s"] = 0
dec["t"] = 0
dec["u"] = 0
dec["v"] = 0
dec["w"] = 0
dec["x"] = 0
dec["y"] = 0
dec["z"] = 0
while True:
    try:
        for s in list(input()):
            if s.lower() in dec:
                dec[s.lower()] += 1
    except:
        break
for n in dec:
    print(f"{n} : {dec[n]}")

Solution (Python):
dec = {}
dec["a"] = 0
dec["b"] = 0
dec["c"] = 0
dec["d"] = 0
dec["e"] = 0
dec["f"] = 0
dec["g"] = 0
dec["h"] = 0
dec["i"] = 0
dec["j"] = 0
dec["k"] = 0
dec["l"] = 0
dec["m"] = 0
dec["n"] = 0
dec["o"] = 0
dec["p"] = 0
dec["q"] = 0
dec["r"] = 0
dec["s"] = 0
dec["t"] = 0
dec["u"] = 0
dec["v"] = 0
dec["w"] = 0
dec["x"] = 0
dec["y"] = 0
dec["z"] = 0
while True:
    try:
        for s in list(input()):
            if s.lower() in dec:
                dec[s.lower()] += 1
    except:
        break
for n in dec:
    print(f"{n} : {dec[n]}")

Solution (Python):
import re
import sys


alphbt = list("abcdefghijklmnopqrstuvwxyz")


inp = ""
for line in sys.stdin.readlines():
    inp += line


for alp in alphbt:
    count = len(re.findall(alp, inp, flags=re.IGNORECASE))
    print(f"{alp} : {count}")

Solution (Python):
b=[chr(i) for i in range(97,97+26)]
c=[chr(i) for i in range(65,65+26)]
d=[0 for i in range(26)]
flg=True
while flg==True:
    try:
        a=raw_input()
        for i in a:
            for j in range(len(b)):
                if i==b[j]:
                    d[j]+=1
            for k in range(len(c)):
                if i==c[k]:
                    d[k]+=1
    except:
            flg=False
for i in range(26):
    print (b[i]+" : "+str(d[i]))

Solution (Python):
import sys
import string

lst = list(string.ascii_lowercase)
dic = dict([[c, 0] for c in lst])

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

for c in lst:
  print(f"{c} : {dic[c]}")

Solution (Python):
tbl = [0] * 26
while True:
    try:
        s = input().lower()
        for i in s:
            if 96 < ord(i) < 124:
                tbl[ord(i) - 97] += 1
    except:
        break

for i in range(26):
    print(f"{chr(i + 97)} : {tbl[i]}")

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

def count_char(inp):

    dic = { chr(c) : 0 for c in range(97, 123)}

    inp = re.sub("[,.]", "", inp)
    inp = inp.replace("\n", "")
    inp = inp.lower()

    for c in inp:
        if c in dic.keys():
            dic[c] += 1

    for n, (k, v) in enumerate(dic.items()):
        print(str(k) + " : " + str(v), end = "")

        if n != len(dic) - 1:
            print("\n", end = "")
        else:
            print("\n", end = "")

if __name__ == "__main__":

    
    
    
    
    
    
    
    
    
    
    
    

    stri = ""

    for e in sys.stdin:
        stri += e
    
    count_char(stri)

Solution (Python):
import sys

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001


table = [0]*26

letters = "abcdefghijklmnopqrstuvwxyz"
input_str = sys.stdin.read()

for A in input_str:
    index = 0
    for B in letters:
        if A == B or A == B.upper():
            table[index] += 1
            break
        index += 1

for i in range(len(letters)):
    print("%s : %d"%(letters[i],table[i]))

Solution (Python):
import re
import string
import sys


s = sys.stdin.read()
s = re.sub(r"[^a-z]", "", s.lower())
s = list(s)

for a in string.ascii_lowercase:
    print(f"{a} : {s.count(a)}")

Solution (Python):
alp = [0 for i in range(26)]
while(True):
    try:
        s = input()
        for i in range(len(s)):
            if s[i].isalpha():
                alp[ord(s[i].lower())-97] = alp[ord(s[i].lower())-97] + 1
    except EOFError:
        break
for i in range(97,97+26):
    print(chr(i),":",alp[i-97])

Solution (Python):
import sys
string = []
words = [0] * 26
for line in sys.stdin.readlines():
    string.append(list(line))
for i in range(len(string)):
    for j in range(len(string[i])):
        code = int(ord(string[i][j].lower())) - 97
        if code >= 0 and code < 26:
            words[code] += 1
for k in range(26):
    print("{} : {}".format(chr(k+97), words[k]))

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

char=ord("a")
while(char<=ord("z")):
    print(chr(char)+" : "+str(sentence.count(chr(char))))
    char+=1

Solution (Python):
alpha = 'abcdefghijklmnopqrstuvwxyz'

letters = ''

while True:
    try:
        newLetters = str(input())
        letters += newLetters

    except:
        break

    
for a in alpha:
    x = 0
    for l in letters:
        if l.lower() == a:
            x += 1
    print(a + ' : ' + str(x))

Solution (Python):
import sys
r = [0]*26
S = ""
for line in sys.stdin.readlines():
    S += line
for i in S:
    if ord("a") <= ord(i) <= ord("z"):
        r[ord(i)-ord("a")] += 1
    elif ord("A") <= ord(i) <= ord("Z"):
        r[ord(i)-ord("A")] += 1
for i in range(26):
    print(chr(i+97) + " : " + str(r[i]))

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

Solution (Python):
import sys
string =[]
for j in sys.stdin:
    string.append(j)
string2 = []
for k in string:
    string2.append(k.strip("\n"))


string3 = ''.join(string2) 

alphabet = list("abcdefghijklmnopqrstuvwxyz")
string3 = string3.lower()   
for i in alphabet:
    print(f'{i} : {string3.count(i)}')

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

Solution (Python):
import sys
letters=['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']
str = sys.stdin.read()

for i in letters:
    print('%s : %d' %(i, str.casefold().count(i)))

Solution (Python):
import sys
s = sys.stdin.read().lower()
num = [0]*26

for i in range(len(s)):
    if 0<=ord(s[i])-97<26:
        num[ord(s[i])-97] += 1

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

Solution (Python):
S = open(0).read().strip().lower()
A = [chr(c) for c in range(ord('a'), ord('z')+1)]
B = dict(zip(iter(A), map(lambda a: S.count(a), iter(A))))
for k, v in B.items():
    print(f'{k} : {v}')

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

Solution (Python):
num_of_alpha = dict()

for i in range(97, 123):
    num_of_alpha[chr(i)] = 0

while True:
    try:
        x = input().lower()
        for i in range(len(x)):
            if x[i].isalpha():
                num_of_alpha[x[i]] += 1
    except:
        break

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

Solution (Python):
import sys 
dic = {}
for i in range(97, 123):
    dic[chr(i)] = 0 

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

for s in dic.items():
    print(s[0],":",s[1])

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

def main():
    
    s=sys.stdin.read()
    chr_n=[0]*26
    for c in s:
        if c.isupper():c=c.lower()
        if not c.islower():continue
        chr_n[ord(c)-97]+=1
    for oc in range(26):
        print("{} : {}".format(chr(oc+97),chr_n[oc]))

main()

Solution (Python):
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}

while True:
    try:
        S = input()

    except:
        break

    for s in S:
        for i in range(len(s)):
            if s[i].lower() in dic:
                dic[s[i].lower()] += 1


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

Solution (Python):
import string
import sys

T = sys.stdin.read().lower()

A = string.ascii_lowercase
for a in A:
    cnt = T.count(a)
    print(f"{a} : {cnt}")

Solution (Python):
list = [0 for i in range(26)]

alpha = "abcdefghijklmnopqrstuvwxyz"

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

 for i in range(len(sent)):
  for j in range(26):
   if sent[i] == alpha[j]:
    list[j] += 1

for i in range(26):
 print(alpha[i],":",list[i])

Solution (Python):
from string import ascii_lowercase 

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

d = {a:0 for a in ascii_lowercase}
for s in S:
    if s in d:
        d[s] += 1

for a in ascii_lowercase:
    print('{} : {}'.format(a, d[a]))

Solution (Python):
alphabet="abcdefghijklmnopqrstuvwxyz"
line=""
while 1:
    try:
        line+=input().lower()
    except EOFError:
            break

for c in alphabet:
    print(c+ " : " + str(line.count(c)))

Solution (Python):
alphabets={}
for i in range(97,97+26):
    alphabets[str(chr(i))]=0
while True:
    try:S=input()
    except:break
    for s in S:
        if s.lower() in alphabets:
            s=s.lower()
            alphabets[s]+=1

for key,value in alphabets.items():
    print(key +' : ' + str(value))

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

cnt = Counter(open(0).read().lower())
for c in string.ascii_lowercase:
    print("{} : {}".format(c, cnt[c]))

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

Solution (Python):
x = [0 for i in range(26)]
while True:
    try:
        s  = input().lower()
    except:
        break
    for i in range(len(s)):
        t = ord(s[i])-ord("a")
        if (t>=0 and t<26) :
            x[t] += 1

for i in range(26):
    print(f"{chr(97+i)} : {x[i]}")

Solution (Python):
import sys
x=sys.stdin.read()
x=x.lower()
final=[0 for i in range(26)]
for i in x:
    k=ord(i)-97
    if k>=0 and k<=25:
        final[k]+=1
for i,v in enumerate(final):
    print(chr(i+97)+' : '+str(v))

Solution (Python):
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}
while True:
    try:
        s = input()
    except EOFError:
        break

    for i in s:
        if alp.get(i.lower()) != None:
            alp[i.lower()] += 1

for key, value in alp.items():
    print(key,':', value)

Solution (Python):
import sys

table = [0] * 26
input_str = sys.stdin.read()
letters ="abcdefghijklmnopqrstuvwxyz"

for A in input_str:
    index = 0
    for B in letters:
        if A == B or A == B.upper():
            table[index] += 1
            break
        index += 1

for i in range(len(letters)):
    print("%s : %d"%(letters[i],table[i]))

Solution (Python):
counts = []
for i in range(0,26):
    counts.append(0)

try:
    s = input()
    while(len(s)>0):
        for _ in s[:]:
            
            if('a' <= _ and _ <= 'z'):
                counts[ord(_)-ord('a')]+=1
            elif('A' <= _ and _ <= 'Z'):
                counts[ord(_)-ord('A')]+=1
        s = input()
except EOFError:
    pass

for c in range(ord('a'), ord('z')+1):
    print('{} : {}'.format(chr(c), counts[c - ord('a')]))

Solution (Python):
import sys

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001


table = [0]*26

letters = "abcdefghijklmnopqrstuvwxyz"
input_str = sys.stdin.read()

for A in input_str:
    index = 0
    for B in letters:
        if A == B or A == B.upper():
            table[index] += 1
            break
        index += 1

for i in range(len(letters)):
    print("%s : %d"%(letters[i],table[i]))

Solution (Python):
import sys

a=sys.stdin.read()

alpha="abcdefghijklmnopqrstuvwxyz"
counter=[0]*26

for i in a:
    for j in alpha:
        if i==j or i==j.upper():
            counter[alpha.index(j)]+=1
            break

for i in alpha:
    print(i,":",counter[alpha.index(i)])

Solution (Python):
import sys
cnt = {}
for e in sys.stdin:
    for c in list(e.lower()):
        cnt[c] = cnt.get(c, 0) + 1

for c in range(ord('a'), ord('z')+1):
    print(chr(c), ':', cnt.get(chr(c), 0))

Solution (Python):
wordDic={}

for ascii in range(97, 123):
    wordDic[chr(ascii)]=0

while True:
    try:
        word = input().lower()
        for key in wordDic:
            for char in range(len(word)):
                if key==word[char]:
                    wordDic[key]=wordDic[key]+1
    except EOFError:
        break
    
for key in wordDic:
    print(key+" : "+str(wordDic[key]))

Solution (Python):
ans = {chr(i): 0 for i in range(97, 97 + 26)}
while True:
    try:
        s = input()
    except BaseException:
        break
    s = s.lower()
    for si in s:
        if si.isalpha():
            ans[si] += 1

for x, y in ans.items():
    print(x, ':', y)

Solution (Python):
import sys
table = [0]*26

alphabet = "abcdefghijklmnopqrstuvwxyz"

while True:
    try:
        line=input().lower()
        for s in line:
            for  i in range(len(alphabet)):
                
                if s == alphabet[i]:
                    table[i] +=1
                    
    except:
        break

for i in range(len(alphabet)):
    print(f'{alphabet[i]} : {table[i]}')

Solution (Python):
import re
count = {}
alphabet = list("abcdefghijklmnopqrstuvwxyz")
while True:
    try:
        s = re.sub("[^a-z]", "", input().lower())
    except:
        break
    for abc in alphabet:
        tmp = count.setdefault(abc, 0)
        count[abc] = tmp + s.count(abc)
for abc in alphabet:
    print(abc + " : " + str(count[abc]))

Solution (Python):
import sys
alphabet = "abcdefghijklmnopqrstuvwxyz"
list = []
for i in sys.stdin:
    list.append(i)
list = ''.join(list)
list = list.lower()
for c in alphabet:
    count = list.count(c)
    print(f'{c} : {count}')

Solution (Python):
map="abcdefghijklmnopqrstuvwxyz"
count=[0 for i in range(len(map))]

lines=[]

try:
    while True:
        line=input()
        if line=="":
            break
        
        if len(line)==0:
            break
        else:
            lines+=line

except EOFError:
    pass
            
for i in range(len(map)):
    for j in range(len(lines)):
        if map[i]==lines[j].lower():
            count[i]+=1
    print("{} :".format(map[i]),count[i])

Solution (Python):
s=""
while True:
  try:
    s+=input()
  except:
    break
for i in range(97,123):
  x=chr(i)
  X=x.upper()
  c=s.count(x)+s.count(X)
  print(x,":",str(c))

Solution (Python):
results = {chr(c): 0 for c in range(ord('a'), ord('a')+26)}

while True:
    try:
        line = input()
    except EOFError:
        break
    for c in line:
        c_lowered = c.lower()
        if c_lowered in results:
            results[c_lowered] += 1


for key in range(ord('a'), ord('a')+26):
    key_str = chr(key)
    print(f'{key_str} : {results[key_str]}')

Solution (Python):
dic={chr(i):0 for i in range(97,97+26)}
while 1:
    try:
        s=input().lower()
        for i in s:
            if i in dic:dic[i] +=1
    except:break
for x,y in dic.items():
    print(x,":",y)

Solution (Python):
import string
counter = [0 for i in range(26)]
while True:
    try:
        Sen = input()
    except:
        break
    for i,alp in enumerate(string.ascii_lowercase):
        counter[i] += Sen.count(alp)+Sen.count(alp.swapcase())
for i,alp in enumerate(string.ascii_lowercase):
    print(alp + " : " + str(counter[i]))

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

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

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

Solution (Python):

alp ="abcdefghijklmnopqrstuvwxyz"

import sys

inpt = []
for _ in sys.stdin:
    inpt.append(_.lower())


ans = [0]*26

for strng in inpt:
    for i in range(len(strng)):
        for j in range(26):
            if strng[i] == alp[j]:
                ans[j] += 1
            
for j in range(26):
    print(alp[j],":",ans[j])

Solution (Python):
import sys
from string import ascii_lowercase

str = sys.stdin.read().lower()
for i in ascii_lowercase:
    print('{} : {}'.format(i, str.count(i)))

Solution (Python):
import sys

c_dict = dict(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)


text = sys.stdin.read().lower()


for ch in text:
    ch = ch.lower()
    if ch in c_dict:
        c_dict[ch] += 1


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

Solution (Python):
import string

alphabets = {}

for i in string.ascii_lowercase:
    alphabets[i] = 0

try:
    while True:
        string = str.lower(input())
        
        for i in range(len(string)):
            if string[i] in alphabets:
                alphabets[string[i]] += 1
        
except Exception:
    for i, j in alphabets.items():
        print('{} : {}'.format(i, j))

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

c = Counter("".join(stdin).lower())
for i in ascii_lowercase:
    print("{} : {}".format(i, c[i]))

Solution (Python):
A = []
while True:
    try:
        n = input()
        if n == "":
            break
    except:
        break
    nn = len(n)
    
    for i in range(nn):
        n_l = n.lower()
        A.append(n_l[i])
  
for i in range(ord("a"),ord("z")+1):
    print(chr(i),":",A.count(chr(i)))

Solution (Python):
import sys

alpha = 'abcdefghijklmnopqrstuvwxyz'
dic = {c: 0 for c in alpha}
s = ''.join(sys.stdin.readlines()).lower()

for c in s:
    if c in alpha:
        dic[c] += 1

for c in alpha:
    print(f'{c} : {dic[c]}')

Solution (Python):
import sys

l=[0 for i in range(26)]
for e in sys.stdin:
    for c in e:
        if str.isupper(c) or str.islower(c):
            l[ord(str.lower(c))-ord('a')]+=1
for i in range(26):
    print(chr(i+ord('a')),l[i],sep=' : ')

Solution (Python):
import sys
anw = {}
for line in sys.stdin.readlines():
    for _ in line:
        if _.lower() in anw:
            anw[_.lower()] += 1
        else:
            anw[_.lower()] = 1

for _ in 'abcdefghijklmnopqrstuvwxyz':
    if _ not in anw:
        print(_,":","0")
    else:
        print(_,":",anw[_])

Solution (Python):
import fileinput

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}
vs = []

for line in fileinput.input():
    vs.append(line.strip())

for v in vs:
    for c in v:
        if c.lower() in dic:
            dic[c.lower()] += 1

for d in dic.items():
    print('{} : {}'.format(d[0], d[1]))