Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, input.split())
if a < b <c:
    print("Yes")
else:
    print("No")

Fixed submission:
a,b,c = map(int,input().split())

result = "Yes" if a<b<c else "No"
print(result)

Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, input.split())
if a < b <c:
    print("Yes")
else:
    print("No")

Fixed submission:
a,b,c = map(int,input().split())

result = "Yes" if a<b<c else "No"
print(result)

Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, input().split)
if a<b<c:
    print("Yes")
else:
    print("No")

Fixed submission:
a,b,c = map(int,input().split())

result = "Yes" if a<b<c else "No"
print(result)

Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, input().split)
if a<b and b<c:
    print("Yes")
else:
    print("No")

Fixed submission:
a,b,c = map(int,input().split())

result = "Yes" if a<b<c else "No"
print(result)

Buggy python submission (verdict: Runtime Error):
a,b,c = map(int,input().split())

result = "Yes" if a<b<c else "No"
print(result)

Fixed submission:
a,b,c = map(int,input().split())

result = "Yes" if a<b<c else "No"
print(result)
Buggy python submission (verdict: Runtime Error):
for i in range(10000):
    j = (int)input()
    if j == 0:
        break
    print("Case {0}: {1}".format(i, j))

Fixed submission:

for i in range(1,100000):
    str = input()
    if str is "0":
        break
    print("Case {0}: {1}".format(i, str))
    i += 1
Buggy python submission (verdict: Runtime Error):
r = int(input())
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))

Fixed submission:
r = float(input())
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))

Buggy python submission (verdict: Runtime Error):
r = int(input())
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))

Fixed submission:
r = float(input())
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))

Buggy python submission (verdict: Runtime Error):
r = (int)input()
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))

Fixed submission:
r = float(input())
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))

Buggy python submission (verdict: Runtime Error):
r = (int)input()
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))

Fixed submission:
r = float(input())
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))

Buggy python submission (verdict: Runtime Error):
r = int(input())
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))

Fixed submission:
r = float(input())
pi = 3.14159265358979

l = 2 * pi * r
s = pi * r**2

print("{0} {1}".format(s, l))
Buggy python submission (verdict: Runtime Error):
def counter(n, x):
    count = 0
    for i in range(n-2):
        for j in range(1, n-1):
            for k in range(2, n):
                if i + j + k == x:
                    count += 1
    return count

while True:
    n, x = map(int, input().split())
    print(counter(n, x))
    

Fixed submission:
def counter(n, x):
    count = 0
    for i in range(1, n-1):
        for j in range(i+1, n):
            for k in range(j+1, n+1):
                if i + j + k == x:
                    count += 1
    return count

while True:
    n, x = map(int, input().split())
    if n == x == 0:
        break
    print(counter(n, x))
Buggy python submission (verdict: Runtime Error):
a=input()
s=int(a)
if s<86400 and s>=0:

    h=int(s/3600)
    m=int((s-h*3600)/60)
    s=s-h*3600-m*60

    print(h,":",m,":",s)

else:
    exit()

Fixed submission:
a,b=input().split()
if int(a)<1 or int(b)>100:
    exit()
else:
   c=int(a)*int(b)
   d=int(a)*2+int(b)*2

print(c,d)
Buggy python submission (verdict: Runtime Error):
a=input()
s=int(a)
if a<86400 and a>=0:

    h=int(s/3600)
    m=int((s-h*3600)/60)
    s=s-h*3600-m*60

    print(h,m,s)

else:
    exit()

Fixed submission:
a=input()
s=int(a)
if s<86400 and s>=0:

    h=int(s/3600)
    m=int((s-h*3600)/60)
    s=s-h*3600-m*60
    print("{0}:{1}:{2}".format(h,m,s))

else:
    exit()

Buggy python submission (verdict: Runtime Error):
a=input()
s=int(a)
if s<86400 and s>=0:

    h=int(s/3600)
    m=int((s-h*3600)/60)
    s=s-h*3600-m*60
    print("{0}:{1}:{2}".format(h,m,s))

else:
    exit(

Fixed submission:
a=input()
s=int(a)
if s<86400 and s>=0:

    h=int(s/3600)
    m=int((s-h*3600)/60)
    s=s-h*3600-m*60
    print("{0}:{1}:{2}".format(h,m,s))

else:
    exit()
Buggy python submission (verdict: Runtime Error):
i=1;count=1
while 1:
    i=input()
    if i==0:
        break
    print("case {0}: {1}".format(count,i))
    count+=1

Fixed submission:
i=1;count=1
while 1:
    i=input()
    i=int(i)
    if i==0:
        break
    print("Case {0}: {1}".format(count,i))
    count+=1

Buggy python submission (verdict: Runtime Error):
i=1;count=1
while 1:
    i=input()
    if i==0:break
        
    print("case {0}: {1}".format(count,i))
    count+=1

Fixed submission:
i=1;count=1
while 1:
    i=input()
    i=int(i)
    if i==0:
        break
    print("Case {0}: {1}".format(count,i))
    count+=1

Buggy python submission (verdict: Runtime Error):
i=1;count=1
while 1:
    i=input()
    if i==0:break

    print("Case {0}: {1}".format(count,i))
    count+=1

Fixed submission:
i=1;count=1
while 1:
    i=input()
    i=int(i)
    if i==0:
        break
    print("Case {0}: {1}".format(count,i))
    count+=1
Buggy python submission (verdict: Runtime Error):
a,b=map(int,raw_input(),split())
print a*b,(a+b)*2

Fixed submission:
a,b=map(int,raw_input().split())
print a*b,(a+b)*2
Buggy python submission (verdict: Runtime Error):
print(x**3)

Fixed submission:
x =int(input())
print(x**3)

Buggy python submission (verdict: Runtime Error):
x = input()
print(x**3)

Fixed submission:
x =int(input())
print(x**3)
Buggy python submission (verdict: Runtime Error):
a, b = exec(input().replace(' ', ','))
print(f"{a*b} {2(a+b)}")

Fixed submission:
a, b = eval(input().replace(' ', ','))
print("{} {}".format(a*b, 2*(a+b)))

Buggy python submission (verdict: Runtime Error):
a, b = exec(input().replace(' ', ','))
print("{} {}".format(a*b, 2(a+b)))

Fixed submission:
a, b = eval(input().replace(' ', ','))
print("{} {}".format(a*b, 2*(a+b)))

Buggy python submission (verdict: Runtime Error):
a, b = eval(input().replace(' ', ','))
print("{} {}".format(a*b, 2(a+b)))

Fixed submission:
a, b = eval(input().replace(' ', ','))
print("{} {}".format(a*b, 2*(a+b)))
Buggy python submission (verdict: Runtime Error):
x = int(input())
h, remainder = divmod(x, 60*60)
m, s = divmod(remainder, 60)
print(f"{h}:{m}:{s}")

Fixed submission:
x = int(input())
h, r = divmod(x, 60*60)
m, s = divmod(r, 60)
print(h, m, s, sep=':')
Buggy python submission (verdict: Runtime Error):
print(X*X*X)

Fixed submission:
i=int(input())
print(i**3)
Buggy python submission (verdict: Runtime Error):
hen = map(int(input()))

print(hen[0]*hen[2] " " hen[0]*2+hen[2])

Fixed submission:
a,b=map(int, input().split())
print(a*b,2*a+2*b)

Buggy python submission (verdict: Runtime Error):
hen = map(int(input().split())

print(hen[0]*hen[1]  hen[0]*2+hen[1]*2)

Fixed submission:
a,b=map(int, input().split())
print(a*b,2*a+2*b)

Buggy python submission (verdict: Runtime Error):
a,b = map(int(input().split())

print(a*b, ,a*2 + b*2)

Fixed submission:
a,b=map(int, input().split())
print(a*b,2*a+2*b)

Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().split()

print(a*b, a*2 + b*2)

Fixed submission:
a,b=map(int, input().split())
print(a*b,2*a+2*b)

Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
print(a*b +' '+2*a*b)

Fixed submission:
a,b=map(int, input().split())
print(a*b,2*a+2*b)

Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
print(a*b,2a+2b)

Fixed submission:
a,b=map(int, input().split())
print(a*b,2*a+2*b)
Buggy python submission (verdict: Runtime Error):
S = int(input())

if S >= 3600:
    h = S / 3600
    m = S % 3600 / 60
    s = m % 60 / 60

else
    if S >= 60:
        h = 0
        m = S / 60
        s = m % 60 / 60
    else
        h = 0
        m = 0
        s = S

Fixed submission:
S = int(input())

h = S//3600
m = S%3600//60
s = S%3600%60

print(h,m,s,sep=":")

Buggy python submission (verdict: Runtime Error):
S = int(input())

h = S//3600
m = S%3600//60
s = S%3600%60

print(h ':' m ':' s)

Fixed submission:
S = int(input())

h = S//3600
m = S%3600//60
s = S%3600%60

print(h,m,s,sep=":")
Buggy python submission (verdict: Runtime Error):
input().sort()
a,b,c = map(int, input().split())
print(a b c)

Fixed submission:
a = list(map(int, input().split()))
a.sort()
print(a[0], a[1], a[2])

Buggy python submission (verdict: Runtime Error):
a = map(int, input().split())
a.sort()
print(a[0], a[1], a[2])

Fixed submission:
a = list(map(int, input().split()))
a.sort()
print(a[0], a[1], a[2])
Buggy python submission (verdict: Runtime Error):
count = 1

for:
    x = input()
    if x == 0: break
    else:
        {i}.format(i=count)
        print("Case{i}:" x)
        count = count + 1

Fixed submission:
c = 1
x = input()
while x != "0":
    print("Case {}: {}".format(c, x))
    x = input()
    c += 1

Buggy python submission (verdict: Runtime Error):
count = 1

while True:
    x = input()
    if x == 0:break
    else:
        print("Case"count": "x)
        count += 1

Fixed submission:
c = 1
x = input()
while x != "0":
    print("Case {}: {}".format(c, x))
    x = input()
    c += 1

Buggy python submission (verdict: Runtime Error):
count = 1
x = input()
while x != "0":
    print("Case"count": "x)
    x = input()
    count += 1

Fixed submission:
c = 1
x = input()
while x != "0":
    print("Case {}: {}".format(c, x))
    x = input()
    c += 1

Buggy python submission (verdict: Runtime Error):
count = 1
x = input()
while x != "0":
    print("Case{}: {}".format(c, x))
    x = input()
    count += 1

Fixed submission:
c = 1
x = input()
while x != "0":
    print("Case {}: {}".format(c, x))
    x = input()
    c += 1
Buggy python submission (verdict: Runtime Error):
a = list(map(int, input().split()))
for a[0] != 0 and a[1] != 0:
    a.sort()
    print(a[0] a[1])
    a = list(map(int, input().split()))

Fixed submission:
while True:
    x,y=map(int,input().split())
    if x+y == 0:break
    if x>y:x,y=y,x
    print(x,y)

Buggy python submission (verdict: Runtime Error):
for True:
    x,y=map(int,input().split())
    if x+y == 0:break
    else:
        if x>y:x,y=y,x
        print(x,y)

Fixed submission:
while True:
    x,y=map(int,input().split())
    if x+y == 0:break
    if x>y:x,y=y,x
    print(x,y)

Buggy python submission (verdict: Runtime Error):
for True:
    x,y=map(int,input().split())
    if x+y == 0:break
    if x>y:x,y=y,x
    print(x,y)

Fixed submission:
while True:
    x,y=map(int,input().split())
    if x+y == 0:break
    if x>y:x,y=y,x
    print(x,y)
Buggy python submission (verdict: Runtime Error):
a,b,c = map(input().split())
y=0
if c%x==0 for x in(a,b+1) :
    y+=1
    print(y)

Fixed submission:
a,b,c = map(int,input().split())
d=0
for x in range(a,b+1):
    if c%x==0:d+=1
print(d)

Buggy python submission (verdict: Runtime Error):
a,b,c = map(input().split())
y=0
for x in(a,b+1):
    if c%x==0:
    y+=1
    print(y)

Fixed submission:
a,b,c = map(int,input().split())
d=0
for x in range(a,b+1):
    if c%x==0:d+=1
print(d)

Buggy python submission (verdict: Runtime Error):
a,b,c = map(input().split())
print(sum([c%x==0 for x in(a,b+1)])

Fixed submission:
a,b,c = map(int,input().split())
d=0
for x in range(a,b+1):
    if c%x==0:d+=1
print(d)

Buggy python submission (verdict: Runtime Error):
a,b,c = map(input().split())
d=0
for x in range(a,b+1):
    if c%x==0:d+=1
print(d)

Fixed submission:
a,b,c = map(int,input().split())
d=0
for x in range(a,b+1):
    if c%x==0:d+=1
print(d)

Buggy python submission (verdict: Runtime Error):
a,b,c = map(input().split())
d=0
x=0
for x in range(a,b+1):
    if c%x==0:d+=1
print(d)

Fixed submission:
a,b,c = map(int,input().split())
d=0
for x in range(a,b+1):
    if c%x==0:d+=1
print(d)
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
d=a//b
r=a%b
f=a/b
print(d r f)

Fixed submission:
a,b=map(int, input().split())
print(a//b, a%b, "{0:.5f}".format(a/b))

Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
print(a//b, a%b, "{0:5f}"/format(a/b))

Fixed submission:
a,b=map(int, input().split())
print(a//b, a%b, "{0:.5f}".format(a/b))

Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
print(a//b, a%b, "{0:.5f}"/format(a/b))

Fixed submission:
a,b=map(int, input().split())
print(a//b, a%b, "{0:.5f}".format(a/b))
Buggy python submission (verdict: Runtime Error):
while True:
    if o==?:break
    a,o,b=map(input().split())
    int(a,b)
    print(aob)

Fixed submission:
while True:
    a=input()
    if '?' in a:break
    print(int(eval(a)))

Buggy python submission (verdict: Runtime Error):
while True:
    a,o,b=map(input().split())
    int(a,b)
    if o==?:break
    else:
        if o==/:o=//
    print(a,o,b)

Fixed submission:
while True:
    a=input()
    if '?' in a:break
    print(int(eval(a)))

Buggy python submission (verdict: Runtime Error):
while True:
    a=input()
    if '?' in a:break
    if '/' in a:/=//
    eval(a)

Fixed submission:
while True:
    a=input()
    if '?' in a:break
    print(int(eval(a)))
Buggy python submission (verdict: Runtime Error):
while True:
    h,w=map(int,input().split())
    if h+w==0:break
    for x in range(1,h+1):
    print("#"*w)

Fixed submission:
while True:
    h,w=map(int, input().split())
    if h==w== 0:break
    print(('#' * w + '\n') * h)

Buggy python submission (verdict: Runtime Error):
while True:
    h,w=map(int,input().split())
    if h+w==0:break
    for x in range(1,h+1):
    print("#"*w)
    print( )

Fixed submission:
while True:
    h,w=map(int, input().split())
    if h==w== 0:break
    print(('#' * w + '\n') * h)
Buggy python submission (verdict: Runtime Error):
while True:
    h,w=map(int, input().split())
    if h==w== 0:break
    print('#' * w)
    print('#' + '.'*(w-2) + '#\n')*(h-2)
    print('#'*w + '\n')

Fixed submission:
while True:
    h,w=map(int, input().split())
    if h==w== 0:break
    print('#' * w + '\n' + ('#' + '.' * (w-2) + '#\n')*(h-2) +'#'* w + '\n')

Buggy python submission (verdict: Runtime Error):
while True:
    h,w=map(int, input().split())
    if h==w== 0:break
    print('#' * w + '\n' +'#' + '.'*(w-2) + '#\n')*(h-2) +'#'* w + '\n')

Fixed submission:
while True:
    h,w=map(int, input().split())
    if h==w== 0:break
    print('#' * w + '\n' + ('#' + '.' * (w-2) + '#\n')*(h-2) +'#'* w + '\n')
Buggy python submission (verdict: Runtime Error):
input()
a=list(int,input())
print(a[::-1])

Fixed submission:
input()
print(' '.join(input().split()[::-1]))
Buggy python submission (verdict: Runtime Error):
n=int(input())
sets=['{0} {1}'.format(m,r) for m in ['S','H','C','D'] for r in range(1,14)]
[sets.remove(input()) for a in range(n)]
print(b) for b in sets

Fixed submission:
n=int(input())
sets=['{0} {1}'.format(m,r) for m in ['S','H','C','D'] for r in range(1,14)]
[sets.remove(input()) for a in range(n)]
[print(b) for b in sets]
Buggy python submission (verdict: Runtime Error):
n=int(input())
a=[[[0 for b in range(10)] for b in range(3)] for b in range(4)]

for b in ranbe(n):
    b,f,r,v=map(int,input().split())
    a[b-1][f-1][r-1]+=v

for c in range(4):
    for d in range(3):print('',*a[c][d])
    if c != 3:print('#' *20)

Fixed submission:
n=int(input())
a=[[[0 for _ in range(10)] for _ in range(3)] for _ in range(4)]

for _ in range(n):
    b,f,r,v=map(int,input().split())
    a[b-1][f-1][r-1]+=v

for c in range(4):
    for d in range(3):print('',*a[c][d])
    if c != 3:print('#' *20)
Buggy python submission (verdict: Runtime Error):
lin = input()
l = lin.split(" ")
a = int(l[0])
b = int(l[1])
c = int(l[2])

l = [a,b,c]
l.sort()

print(str(l[0])+" "+str(l[1])+" "+str(l[2]))

Fixed submission:
lin = input()
l = lin.split(" ")
a = int(l[0])
b = int(l[1])
c = int(l[2])

l = [a,b,c]
l.sort()

print(str(l[0])+" "+str(l[1])+" "+str(l[2]))
Buggy python submission (verdict: Time Limit Exceeded):
l = [str(i) for i in input().split()]

a = int(l[0])
b = int(l[2])
op = l[1]

while True:

    if op == "+":
        print(a+b)
        
    elif op == "-":
        print(a-b)
        
    elif op == "*":
        print(a*b)
        
    elif op == "/":
        print(a//b)
     
    elif op == "?":
        break

Fixed submission:
while True:

    l = [str(i) for i in input().split()]

    a = int(l[0])
    b = int(l[2])
    op = l[1]

    if op == "+":
        print(a+b)
        
    elif op == "-":
        print(a-b)
        
    elif op == "*":
        print(a*b)
        
    elif op == "/":
        print(a//b)
     
    elif op == "?":
        break
Buggy python submission (verdict: Runtime Error):
W, H, x, y, r = map(int, input().split())
 
if (x + r) <= W and (x - r) >= 0 and (y + r) <= H and (y - r) >= 0:
    print("Yes")
else:
    print("No"

Fixed submission:
W, H, x, y, r = map(int, input().split())
 
if (x + r) <= W and (x - r) >= 0 and (y + r) <= H and (y - r) >= 0:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
x1 = input()
x2 = input()
x1 = int(x1)
x2 = int(x2)
x3 = x1+x2
print(x3)

Fixed submission:
z = input()
x, y = z.split()
x = int(x)
y = int(y)
a = x * y
p = 2 * (x+y)
print(a, p)
Buggy python submission (verdict: Runtime Error):
W,H,x,y,r = list(map(int,input().split()))
if x - r >= 0 and y - r >= 0 and x + r =< W and y + r =< H:
	print("Yes")
else:
	print("No")

Fixed submission:
W,H,x,y,r = list(map(int,input().split()))
if x - r >= 0 and y - r >= 0 and x + r <= W and y + r <= H:
	print("Yes")
else:
	print("No")
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())

print("{0:.6f}".format(math.pi * r**2), "{0:.6f}".format(2 *math.pi * r))

Fixed submission:
import math
r = float(input())

print("{0:.6f}".format(math.pi * r**2), "{0:.6f}".format(2 *math.pi * r))
Buggy python submission (verdict: Runtime Error):
n, m = map(int, input().split())
a = [[int(n) for n in input().split()] for i in range(n)]
b = []
for i in range(m):
    b.append(int(input()))
c = [0 for i in range(m)]
for i in range(n):
    for j in range(m):
        c[i] += a[i][j] * b[j]
    print(c[i])

Fixed submission:
n, m = map(int, input().split())
a = [[int(n) for n in input().split()] for i in range(n)]
b = []
for i in range(m):
    b.append(int(input()))
c = [0 for i in range(n)]
for i in range(n):
    for j in range(m):
        c[i] += a[i][j] * b[j]
    print(c[i])
Buggy python submission (verdict: Time Limit Exceeded):
while True:
    array = []
    n, x = map(int, input().split())
    if n == x == 0:
        break
    for i in range(1, n+1):
        for j in range(1, n+1):
            for k in range(1, n+1):
                if (i + j + k == x and i != j != k and i != j and i != k and j != k):
                    sort = sorted([i, j, k])
                    if sort not in array:
                        array.append(sorted((i, j, k)))
    print(len(array))

Fixed submission:
while True:
    n, x = map(int, input().split())
    if n == x == 0:
        break
    cnt = 0
    for i in range(1, n+1):
        for j in range(i+1, n+1):
            for k in range(j+1, n+1):
                if i + j + k == x:
                    cnt += 1
    print(cnt)
Buggy python submission (verdict: Runtime Error):
import math
r=int(input())
s=math.pi
print("%.6f"%(r*r*s),"%.6f"%(2*r*s))

Fixed submission:
import math
r=float(input())
s=math.pi
print("%.6f"%(r*r*s),"%.6f"%(2*r*s))
Buggy python submission (verdict: Runtime Error):
n,m=map(int, input().split())
for _ in range (n):
 A=list(map(int, input().split())
for _ in range (m):
 b=int(input())
 for _ in range (n):
  print(sum(a[_][i] * b[i] for i in range(m)))

Fixed submission:
n,m=map(int, input().split())
A=[list(map(int, input().split())) for _ in range (n)]
b=[int(input()) for _ in range (m)]
for _ in range (n):
 print(sum(A[_][i] * b[i] for i in range(m)))

Buggy python submission (verdict: Runtime Error):
n,m=map(int, input().split())
A=[list(map(int, input().split()) for _ in range (n)]
b=[int(input()) for _ in range (m)]
for _ in range (n):
 print(sum(a[_][i] * b[i] for i in range(m)))

Fixed submission:
n,m=map(int, input().split())
A=[list(map(int, input().split())) for _ in range (n)]
b=[int(input()) for _ in range (m)]
for _ in range (n):
 print(sum(A[_][i] * b[i] for i in range(m)))
Buggy python submission (verdict: Runtime Error):
 if m==f==r==-1:
  break
 else:
  if m==-1 or f==-1 or m+f<30:
   print('F')
  elif m+f>=80:
   print('A')
  elif 80>m+f>=65:
   print('B')
  elif (65>m+f>=50) or (50>m+f>=35 and r>=50):
   print('C')
  else:
   print('D')

Fixed submission:
while True:
 m,f,r=map(int, input().split())
 if m==f==r==-1:
  break
 else:
  if m==-1 or f==-1 or m+f<30:
   print('F')
  elif m+f>=80:
   print('A')
  elif m+f>=65:
   print('B')
  elif (m+f>=50) or (m+f>=30 and r>=50):
   print('C')
  else:
   print('D')
Buggy python submission (verdict: Runtime Error):
import sys string = str() for line in sys.stdin: string += line.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)) 


Fixed submission:
import sys
S= sys.stdin.read()
print('a : '+str(S.count('a')+S.count('A')))
print('b : '+str(S.count('b')+S.count('B')))
print('c : '+str(S.count('c')+S.count('C')))
print('d : '+str(S.count('d')+S.count('D')))
print('e : '+str(S.count('e')+S.count('E')))
print('f : '+str(S.count('f')+S.count('F')))
print('g : '+str(S.count('g')+S.count('G')))
print('h : '+str(S.count('h')+S.count('H')))
print('i : '+str(S.count('i')+S.count('I')))
print('j : '+str(S.count('j')+S.count('J')))
print('k : '+str(S.count('k')+S.count('K')))
print('l : '+str(S.count('l')+S.count('L')))
print('m : '+str(S.count('m')+S.count('M')))
print('n : '+str(S.count('n')+S.count('N')))
print('o : '+str(S.count('o')+S.count('O')))
print('p : '+str(S.count('p')+S.count('P')))
print('q : '+str(S.count('q')+S.count('Q')))
print('r : '+str(S.count('r')+S.count('R')))
print('s : '+str(S.count('s')+S.count('S')))
print('t : '+str(S.count('t')+S.count('T')))
print('u : '+str(S.count('u')+S.count('U')))
print('v : '+str(S.count('v')+S.count('V')))
print('w : '+str(S.count('w')+S.count('W')))
print('x : '+str(S.count('x')+S.count('X')))
print('y : '+str(S.count('y')+S.count('Y')))
print('z : '+str(S.count('z')+S.count('Z')))

Buggy python submission (verdict: Runtime Error):
s = '' while True: try: s += input().lower() except EOFError: break for c in 'abcdefghijklmnopqrstuvwxyz': print('{} : {}'.format(c, s.count(c))) 


Fixed submission:
import sys
S= sys.stdin.read()
print('a : '+str(S.count('a')+S.count('A')))
print('b : '+str(S.count('b')+S.count('B')))
print('c : '+str(S.count('c')+S.count('C')))
print('d : '+str(S.count('d')+S.count('D')))
print('e : '+str(S.count('e')+S.count('E')))
print('f : '+str(S.count('f')+S.count('F')))
print('g : '+str(S.count('g')+S.count('G')))
print('h : '+str(S.count('h')+S.count('H')))
print('i : '+str(S.count('i')+S.count('I')))
print('j : '+str(S.count('j')+S.count('J')))
print('k : '+str(S.count('k')+S.count('K')))
print('l : '+str(S.count('l')+S.count('L')))
print('m : '+str(S.count('m')+S.count('M')))
print('n : '+str(S.count('n')+S.count('N')))
print('o : '+str(S.count('o')+S.count('O')))
print('p : '+str(S.count('p')+S.count('P')))
print('q : '+str(S.count('q')+S.count('Q')))
print('r : '+str(S.count('r')+S.count('R')))
print('s : '+str(S.count('s')+S.count('S')))
print('t : '+str(S.count('t')+S.count('T')))
print('u : '+str(S.count('u')+S.count('U')))
print('v : '+str(S.count('v')+S.count('V')))
print('w : '+str(S.count('w')+S.count('W')))
print('x : '+str(S.count('x')+S.count('X')))
print('y : '+str(S.count('y')+S.count('Y')))
print('z : '+str(S.count('z')+S.count('Z')))