Buggy python submission (verdict: Runtime Error):
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])

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

Buggy python submission (verdict: Runtime Error):
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])

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

Buggy python submission (verdict: Runtime Error):
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])

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

Buggy python submission (verdict: Runtime Error):
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]))

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

Buggy python submission (verdict: Runtime Error):
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]))

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

Buggy python submission (verdict: Runtime Error):
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]))

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

Buggy python submission (verdict: Runtime Error):
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))

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

Buggy python submission (verdict: Runtime Error):
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]))

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

Buggy python submission (verdict: Runtime Error):
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]))

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

Buggy python submission (verdict: Runtime Error):
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]))

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

Buggy python submission (verdict: Runtime Error):
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]))

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