Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
while(1):
	m, f, r = map(int, input().split())
	if m == -1 and f == -1 and r == -1:
		break
	
	if m == -1 or f = -1:
		print("f")
	elif m + f >= 80:
		print("A")
	elif m + f >= 65:
		print("B")
	elif m + f >= 50:
		print("C")
	elif m + f >= 30:
		if r >= 50:
			print("C")
		else:
			print("D")
	else:
		print("F")

Fixed submission:
while(1):
	m, f, r = map(int, input().split())
	if m == -1 and f == -1 and r == -1:
		break
	
	if m == -1 or f == -1:
		print('F')
	elif m + f >= 80:
		print('A')
	elif m + f >= 65:
		print('B')
	elif m + f >= 50:
		print('C')
	elif m + f >= 30:
		if r >= 50:
			print('C')
		else:
			print('D')
	else:
		print('F')

Buggy python submission (verdict: Runtime Error):
while(1):
	m, f, r = map(int, input().split())
	if m == -1 and f == -1 and r == -1:
		break
	
	if m == -1 or f = -1:
		print("f")
	elif m + f >= 80:
		print("A")
	elif m + f >= 65:
		print("B")
	elif m + f >= 50:
		print("C")
	elif m + f >= 30:
		if r >= 50:
			print("C")
		else:
			print("D")
	else:
		print("F")

Fixed submission:
while(1):
	m, f, r = map(int, input().split())
	if m == -1 and f == -1 and r == -1:
		break
	
	if m == -1 or f == -1:
		print('F')
	elif m + f >= 80:
		print('A')
	elif m + f >= 65:
		print('B')
	elif m + f >= 50:
		print('C')
	elif m + f >= 30:
		if r >= 50:
			print('C')
		else:
			print('D')
	else:
		print('F')

Buggy python submission (verdict: Runtime Error):
while(1):
	m, f, r = map(int, input().split())
	if m == -1 and f == -1 and r == -1:
		break
	
	if m == -1 or f = -1:
		print("F")
	elif m + f >= 80:
		print("A")
	elif m + f >= 65:
		print("B")
	elif m + f >= 50:
		print("C")
	elif m + f >= 30:
		if r >= 50:
			print("C")
		else:
			print("D")
	else:
		print("F")

Fixed submission:
while(1):
	m, f, r = map(int, input().split())
	if m == -1 and f == -1 and r == -1:
		break
	
	if m == -1 or f == -1:
		print('F')
	elif m + f >= 80:
		print('A')
	elif m + f >= 65:
		print('B')
	elif m + f >= 50:
		print('C')
	elif m + f >= 30:
		if r >= 50:
			print('C')
		else:
			print('D')
	else:
		print('F')

Buggy python submission (verdict: Runtime Error):
while(1):
	m, f, r = map(int, input().split())
	if m == -1 and f == -1 and r == -1:
		break
	
	if m == -1 or f = -1:
		print('F')
	elif m + f >= 80:
		print('A')
	elif m + f >= 65:
		print('B')
	elif m + f >= 50:
		print('C')
	elif m + f >= 30:
		if r >= 50:
			print('C')
		else:
			print('D')
	else:
		print('F')

Fixed submission:
while(1):
	m, f, r = map(int, input().split())
	if m == -1 and f == -1 and r == -1:
		break
	
	if m == -1 or f == -1:
		print('F')
	elif m + f >= 80:
		print('A')
	elif m + f >= 65:
		print('B')
	elif m + f >= 50:
		print('C')
	elif m + f >= 30:
		if r >= 50:
			print('C')
		else:
			print('D')
	else:
		print('F')
Buggy python submission (verdict: Runtime Error):
while(1):
	n, x = map(int, input().split())
	t = 0
	if n == x == 0:
		break
	for i in range(1, n+1):
		for j in range(i+1, n+1):
			for k in range(k+1, n+1):
				if i+j+k == x:
					if i != j and j != k and k != i:
						t += 1
						print(i, j, k)
	print(t)

Fixed submission:
while(1):
	n, x = map(int, input().split())
	t = 0
	if n == x == 0:
		break
	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:
					if i != j and j != k and k != i:
						t += 1
						#print(i, j, k)
	print(t)

Buggy python submission (verdict: Runtime Error):
while(1):
	n, x = map(int, input().split())
	t = 0
	if n == x == 0:
		break
	for i in range(1, n+1):
		for j in range(i+1, n+1):
			for k in range(k+1, n+1):
				if i+j+k == x:
					if i != j and j != k and k != i:
						t += 1
						#print(i, j, k)
	print(t)

Fixed submission:
while(1):
	n, x = map(int, input().split())
	t = 0
	if n == x == 0:
		break
	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:
					if i != j and j != k and k != i:
						t += 1
						#print(i, j, k)
	print(t)
Buggy python submission (verdict: Runtime Error):
list_str2 = [0 for i in range(26)]

while(1):
	list_str1 = list(input())
	print(list_str1)
	if list_str1 == []:
		break
	for i in range(len(list_str1)):
		if 97 <= ord(list_str1[i].lower()) <= 122:
			list_str2[ord(list_str1[i].lower())-97] += 1

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

Fixed submission:
str1 = input()
print(str1.swapcase())
Buggy python submission (verdict: Runtime Error):
list_str2 = [0 for i in range(26)]

while(1):
	list_str1 = list(input())
	print(list_str1)
	if list_str1 == []:
		break
	for i in range(len(list_str1)):
		if 97 <= ord(list_str1[i].lower()) <= 122:
			list_str2[ord(list_str1[i].lower())-97] += 1

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

Fixed submission:
list_str2 = [0 for i in range(26)]

while(1):
	try:
		list_str1 = list(input())
		#print(list_str1)
	except:
		break
	for i in range(len(list_str1)):
		if 97 <= ord(list_str1[i].lower()) <= 122:
			list_str2[ord(list_str1[i].lower())-97] += 1

for i in range(26):
	print(chr(97+i)+' : '+str(list_str2[i]))
Buggy python submission (verdict: Runtime Error):
import sys
#t=1

for i in range(len(s)):
	if p[0] == s[i]:
		for j in range(len(p)-1):
			if p[j+1] == s[(i+j+1)%len(s)]:
				t += 1
				#print(t,j,i+j)
			else:
				t = 0
			if t == len(p):
				#print('Yes')
				sys.exit()

if t < len(p):
	print('No')

Fixed submission:
s = list(input())
p = list(input())
#print(len(p))
import sys

for i in range(len(s)):
	t=0
	for j in range(len(p)):
		if p[j] == s[(i+j)%len(s)]:
			t = t+1
			#print(p[j], s[(i+j)%len(s)])
		else:
			t = 0
		if t == len(p):
			print('Yes')
			sys.exit()

if t < len(p):
	print('No')

Buggy python submission (verdict: Runtime Error):
import sys

for i in range(len(s)):
	if p[0] == s[i]:
		t = 1
		for j in range(len(p)-1):
			if p[j+1] == s[(i+j+1)%len(s)]:
				#print(t, end = '')
				t = t+1
				#print(t)
			else:
				t = 0
			if t == len(p):
				print('Yes')
				sys.exit()

if t < len(p):
	print('No')

Fixed submission:
s = list(input())
p = list(input())
#print(len(p))
import sys

for i in range(len(s)):
	t=0
	for j in range(len(p)):
		if p[j] == s[(i+j)%len(s)]:
			t = t+1
			#print(p[j], s[(i+j)%len(s)])
		else:
			t = 0
		if t == len(p):
			print('Yes')
			sys.exit()

if t < len(p):
	print('No')

Buggy python submission (verdict: Runtime Error):
s = list(input())
p = list(input())
#print(len(p))
import sys
t=0

for i in range(len(s)):
	for j in range(len(p)):
		if p[j] == s[(i+j)%len(s)]:
			t = t+1
		else:
			t = 0
		if t == len(p):
			print('Yes')
			sys.exit()

if t < len(p):
	print('No')

fori

Fixed submission:
s = list(input())
p = list(input())
#print(len(p))
import sys

for i in range(len(s)):
	t=0
	for j in range(len(p)):
		if p[j] == s[(i+j)%len(s)]:
			t = t+1
			#print(p[j], s[(i+j)%len(s)])
		else:
			t = 0
		if t == len(p):
			print('Yes')
			sys.exit()

if t < len(p):
	print('No')

Buggy python submission (verdict: Runtime Error):
import sys

for i in range(len(s)):
	for j in range(len(p)):
		t=0
		if p[j] == s[(i+j)%len(s)]:
			t = t+1
			#print(p[j], s[(i+j)%len(s)])
		else:
			t = 0
		if t == len(p):
			print('Yes')
			sys.exit()

if t < len(p):
	print('No')

Fixed submission:
s = list(input())
p = list(input())
#print(len(p))
import sys

for i in range(len(s)):
	t=0
	for j in range(len(p)):
		if p[j] == s[(i+j)%len(s)]:
			t = t+1
			#print(p[j], s[(i+j)%len(s)])
		else:
			t = 0
		if t == len(p):
			print('Yes')
			sys.exit()

if t < len(p):
	print('No')
Buggy python submission (verdict: Runtime Error):
W = input()
print(W)
t=0

while(1):
	char_list = list(x.lower() for x in input().split())
	print(char_list)
	if char_list[0] == 'END_OF_TEXT':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i]:
			t += 1

print(t)

Fixed submission:
W = input().lower()
#print(W)
t=0

while(1):
	char_list = list(x for x in input().split())
	#print(char_list)
	if char_list[0] == 'END_OF_TEXT':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i].lower():
			t += 1

print(t)

Buggy python submission (verdict: Runtime Error):
W = input()
print(W)
t=0

while(1):
	char_list = list(x.lower() for x in input().split())
	#print(char_list)
	if char_list[0] == 'END_OF_TEXT':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i]:
			t += 1

print(t)

Fixed submission:
W = input().lower()
#print(W)
t=0

while(1):
	char_list = list(x for x in input().split())
	#print(char_list)
	if char_list[0] == 'END_OF_TEXT':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i].lower():
			t += 1

print(t)

Buggy python submission (verdict: Runtime Error):
W = input()
#print(W)
t=0

while(1):
	char_list = list(x.lower() for x in input().split())
	#print(char_list)
	if char_list[0] == 'END_OF_TEXT':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i]:
			t += 1

print(t)

Fixed submission:
W = input().lower()
#print(W)
t=0

while(1):
	char_list = list(x for x in input().split())
	#print(char_list)
	if char_list[0] == 'END_OF_TEXT':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i].lower():
			t += 1

print(t)

Buggy python submission (verdict: Runtime Error):
W = input()
#print(W)
t=0

while(1):
	char_list = list(x.lower() for x in input().split())
	#print(char_list)
	if char_list[0] == 'END_OF_TEXT':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i]:
			t += 1

print(t)

Fixed submission:
W = input().lower()
#print(W)
t=0

while(1):
	char_list = list(x for x in input().split())
	#print(char_list)
	if char_list[0] == 'END_OF_TEXT':
		break
	
	for i in range(len(char_list)):
		if W == char_list[i].lower():
			t += 1

print(t)
Buggy python submission (verdict: Runtime Error):
while True:
	W = list(input())
	if W[0] == '-':
		break
	times = int(input())
	for i in range(times):
		h = int(input())
		W = W[h:]+W[0:h]
	print(X)

Fixed submission:
while True:
	W = list(input())
	if W[0] == '-':
		break
	times = int(input())
	for i in range(times):
		h = int(input())
		W = W[h:]+W[0:h]
	print(*W, sep='')
Buggy python submission (verdict: Runtime Error):
import math
x1, y1, x2, y2 = map(int, raw_input().split())
x, y = x2 - x1, y2 - y1
print math.sqrt(x**2 + y**2)

Fixed submission:
import math
x1, y1, x2, y2 = map(float, raw_input().split())
x, y = x2 - x1, y2 - y1
print math.sqrt(x**2 + y**2)

Buggy python submission (verdict: Runtime Error):
import math
x1, y1, x2, y2 = map(int, raw_input().split())
x, y = x2 - x1, y2 - y1
print math.sqrt(x**2 + y**2)

Fixed submission:
import math
x1, y1, x2, y2 = map(float, raw_input().split())
x, y = x2 - x1, y2 - y1
print math.sqrt(x**2 + y**2)
Buggy python submission (verdict: Runtime Error):
import math
ni = int(input())
xi = map(int, raw_input().split())
yi = map(int, raw_input().split())

p1 = []
p2 = []
p3 = []
p4 = []
for x, y in zip(xi, yi):
    p1.append(abs(x - y))
    p2.append(abs(x - y)**2)
    p3.append(abs(x - y)**3)
    p4.append(abs(x - y))

print '%.6f' % reduce(lambda x, y: x + y,
print '%.6f' % reduce(lambda x, y: x + y,
print '%.6f' % reduce(lambda x, y: x + y,
print '%.6f' % max(p4)

Fixed submission:
import math
ni = int(input())
xi = map(int, raw_input().split())
yi = map(int, raw_input().split())

p1 = []
p2 = []
p3 = []
p4 = []
for x, y in zip(xi, yi):
    p1.append(abs(x - y))
    p2.append(abs(x - y)**2)
    p3.append(abs(x - y)**3)
    p4.append(abs(x - y))

print '%.8f' % reduce(lambda x, y: x + y, p1)
print '%.8f' % reduce(lambda x, y: x + y, p2) ** (1.0/2.0)
print '%.8f' % reduce(lambda x, y: x + y, p3) ** (1.0/3.0)
print '%.8f' % max(p4)

Buggy python submission (verdict: Runtime Error):
import math
ni = int(input())
xi = map(int, raw_input().split(
yi = map(int, raw_input().split(

p1 = []
p2 = []
p3 = []
p4 = []
for x, y in zip(xi, yi):
    p1.append(abs(x - y))
    p2.append(abs(x - y)**2)
    p3.append(abs(x - y)**3)
    p4.append(abs(x - y))

print '%.8f' % reduce(lambda x, 
print '%.8f' % reduce(lambda x, 
print '%.8f' % reduce(lambda x, 
print '%.8f' % max(p4)

Fixed submission:
import math
ni = int(input())
xi = map(int, raw_input().split())
yi = map(int, raw_input().split())

p1 = []
p2 = []
p3 = []
p4 = []
for x, y in zip(xi, yi):
    p1.append(abs(x - y))
    p2.append(abs(x - y)**2)
    p3.append(abs(x - y)**3)
    p4.append(abs(x - y))

print '%.8f' % reduce(lambda x, y: x + y, p1)
print '%.8f' % reduce(lambda x, y: x + y, p2) ** (1.0/2.0)
print '%.8f' % reduce(lambda x, y: x + y, p3) ** (1.0/3.0)
print '%.8f' % max(p4)
Buggy python submission (verdict: Runtime Error):
import sys
def main(): 
    input_line1 = raw_input()
    work = input_line1.split(' ')

    ret = 'a<b' 
    if work[0] == work[1]:
        ret = 'a==b'
    if work[0] > work[1]:
        ret = 'a>b' 
    return ret

if __name__ == '__main__':
    sys.exit(main())

Fixed submission:
input_value = raw_input().split(' ')
ret = 'a == b'
if int(input_value[0]) < int(input_value[1]): ret = 'a < b'
if int(input_value[0]) > int(input_value[1]): ret = 'a > b'
print(ret)

Buggy python submission (verdict: Runtime Error):
import sys
def main(): 
    input_line1 = raw_input()
    work = input_line1.split(' ')

    ret = 'a < b'
    if work[0] == work[1]:
        ret = 'a == b'
    if work[0] > work[1]:
        ret = 'a > b'
    return ret

if __name__ == '__main__':
    sys.exit(main())

Fixed submission:
input_value = raw_input().split(' ')
ret = 'a == b'
if int(input_value[0]) < int(input_value[1]): ret = 'a < b'
if int(input_value[0]) > int(input_value[1]): ret = 'a > b'
print(ret)
Buggy python submission (verdict: Runtime Error):
W, H, x, y, r = map(int, raw_input().split())
print 'Yes' if 0 =< (x + r) =< W and 0 =< (y + r) =< H else 'No'

Fixed submission:
W, H, x, y, r = map(int, raw_input().split())
print 'Yes' if 0 <= x - r and 0 <= y -r and x + r <= W and y + r <= H else 'No'
Buggy python submission (verdict: Runtime Error):
ret = []
while True:
    n = input()
    if n == 0:
        break
    ret += [n]

for i, x in enumerate(ret):
    print 'Case %d: %d' % (i+1, x)

Fixed submission:
i = 0
while True:
    i, n = i+1, input()               
    if n == 0:
        break
    print 'Case %d: %d' % (i, n)

Buggy python submission (verdict: Runtime Error):
i = 0
while True:
    i, n = input(), i+1
    if n == 0:
        break
    print 'Case %d: %d' % (i+1, x)

Fixed submission:
i = 0
while True:
    i, n = i+1, input()               
    if n == 0:
        break
    print 'Case %d: %d' % (i, n)

Buggy python submission (verdict: Runtime Error):
i = 0
while True:
    i, n = input(), i+1
    if n == 0:
        break
    print 'Case %d: %d' % (i+1, n)

Fixed submission:
i = 0
while True:
    i, n = i+1, input()               
    if n == 0:
        break
    print 'Case %d: %d' % (i, n)
Buggy python submission (verdict: Runtime Error):
import math
r = int(raw_input())
pai = 3.1415
print('%.5f %.5f' % (r*r*math.pi, 2*math.pi*r))

Fixed submission:
import math
r = float(raw_input())
print('%.5f %.5f' % (r*r*math.pi, 2*math.pi*r))

Buggy python submission (verdict: Runtime Error):
r = int(raw_input())
pai = 3.1415
print('%.5f %.5f' % (r*r*pai, 2*pai*r))

Fixed submission:
import math
r = float(raw_input())
print('%.5f %.5f' % (r*r*math.pi, 2*math.pi*r))
Buggy python submission (verdict: Runtime Error):
while True:
   h,w = map(int, raw_input().split())
   if h == w == 0:
       break
   ret += '#'*w+'\n'
   ret += ('#' + '.' * (w-2) + '#\n') * (h - 2)
   ret += '#'*w+'\n\n'
print ret,

Fixed submission:
while True:
   h,w = map(int, raw_input().split())
   if h == w == 0:
       break
   ret = '#'*w+'\n'
   ret += ('#' + '.' * (w-2) + '#\n') * (h - 2)
   ret += '#'*w+'\n\n'
   print ret,
Buggy python submission (verdict: Runtime Error):
cards = []
for s in ['S', 'H', 'C', 'D']:
    for n in range(1,14,1):
        cards += ["%s %s" % (s, n)]

input_cards = []
input_cards = raw_input()
while True:
    input_card = raw_input()
    cards.remove(input_card)

    for card in cards:
        print(card)

Fixed submission:
cards = []
cards = ["%s %s" % (s, n) for s in ['S', 'H', 'C', 'D'] for n in range(1,14,1)]

input_cards = []
input_cards_num = int(raw_input())
for i in range(1, input_cards_num + 1, 1) :
    input_card = raw_input()
    cards.remove(input_card)

for card in cards:
    print(card)
Buggy python submission (verdict: Runtime Error):
True:
    input = raw_input()
    if input == '0': break
    print sum(map(int, input))


Fixed submission:
while True:
    input = raw_input()
    if input == '0': break
    print sum(map(int, input))
Buggy python submission (verdict: Runtime Error):
l = 'abcdefghijklmnopqrstuvwxyz'
mp = [0 for _ in list(l)]

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

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

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

Fixed submission:
l = 'abcdefghijklmnopqrstuvwxyz'
mp = [0 for _ in list(l)]

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

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

for i,j in zip(l, mp):
    print "%s : %s" % (i, j)
Buggy python submission (verdict: Runtime Error):
input = int(input())

hour = math.floor(input/3600)
input -= hour*3600

min = math.floor(input/60)
input -= min*60

sec = math.floor(input)

print(hour+":"+min+":"sec)


Fixed submission:
import math

input = int(input())

hour = math.floor(input/3600)
input -= hour*3600

min = math.floor(input/60)
input -= min*60

sec = math.floor(input)

print(str(hour)+":"+str(min)+":"+str(sec))
Buggy python submission (verdict: Runtime Error):
input = -1
cnt = 1
output = []
while input != 0:
	input = input()
	if input == 0:
		break
	output += "Case " + cnt + ": " + input

for x in output:
	print(x)


Fixed submission:
tmp = -1
cnt = 1
output = []
while tmp != 0:
	tmp = int(input())
	if tmp == 0:
		break
	output += ["Case " + str(cnt) + ": " + str(tmp)]
	cnt += 1

for x in output:
	print(x)
Buggy python submission (verdict: Runtime Error):
cnt = 1
output = []
while True:
	data += input().split()
	if data[0] == 0 && data[1] == 0:
		break
	output += [str(data[1]) + ' ' + str(data[0])]

for line in output:
	print(line)


Fixed submission:
cnt = 1
output = []
while True:
	data = input().split()
	if data[0] == '0' and data[1] == '0':
		break
	elif int(data[0]) > int(data[1]):
		output += [data[1] + " " + data[0]]
	else:
		output += [data[0] + " " + data[1]]
for line in output:
	print(line)

Buggy python submission (verdict: Runtime Error):
cnt = 1
output = []
while True:
	data += input().split()
	if data[0] == 0 and data[1] == 0:
		break
	output += [str(data[1]) + " " + str(data[0])]

for line in output:
	print(line)


Fixed submission:
cnt = 1
output = []
while True:
	data = input().split()
	if data[0] == '0' and data[1] == '0':
		break
	elif int(data[0]) > int(data[1]):
		output += [data[1] + " " + data[0]]
	else:
		output += [data[0] + " " + data[1]]
for line in output:
	print(line)
Buggy python submission (verdict: Runtime Error):
import math

data = input().split()
a = int(data[0])
b = int(data[1])

d = math.float(a/b)
r = a%b
f = a/b

print(d, " ", r, " ", f)


Fixed submission:
import math

data = input().split()
a = int(data[0])
b = int(data[1])

d = math.floor(a/b)
r = a%b
f = round(a/b,5)

print(d, " ", r, " ", format(f,"f"))
Buggy python submission (verdict: Runtime Error):
import math

data = input().split()
a = int(data[0])
b = data[1]
c = int(data[2])

ans = []
while True:
	if b == '+':
		ans += a+c
	elif b == '-':
		ans += a-c
	elif b == '*':
		ans += a*c
	elif b == '/':
		ans += math.floor(a/c)
	elif b == '?':
		break
	else:
		break

for output in ans:
	print(output)


Fixed submission:
import math

ans = []
while True:
	data = input().split()
	a = int(data[0])
	b = data[1]
	c = int(data[2])

	if b == '+':
		ans += [a+c]
	elif b == '-':
		ans += [a-c]
	elif b == '*':
		ans += [a*c]
	elif b == '/':
		ans += [math.floor(a/c)]
	elif b == '?':
		break
	else:
		break

for output in ans:
	print(output)

Buggy python submission (verdict: Runtime Error):
import math

data = input().split()
a = int(data[0])
b = data[1]
c = int(data[2])

ans = []
while True:
	if b == '+':
		ans += a+c
	elsif b == '-':
		ans += a-c
	elsif b == '*':
		ans += a*c
	elsif b == '/':
		ans += math.floor(a/c)
	elsif b == '?':
		break
	else:
		break

for output in ans:
	print(output)


Fixed submission:
import math

ans = []
while True:
	data = input().split()
	a = int(data[0])
	b = data[1]
	c = int(data[2])

	if b == '+':
		ans += [a+c]
	elif b == '-':
		ans += [a-c]
	elif b == '*':
		ans += [a*c]
	elif b == '/':
		ans += [math.floor(a/c)]
	elif b == '?':
		break
	else:
		break

for output in ans:
	print(output)

Buggy python submission (verdict: Runtime Error):
import math

data = input().split()
a = int(data[0])
b = data[1]
c = int(data[2])

ans = []
while True:
	if b == '+':
		ans += a+c
	elif b == '-':
		ans += a-c
	elif b == '*':
		ans += a*c
	elif b == '/':
		ans += math.floor(a/c)
	elif b == '?':
		break
	else:
		break

for output in ans:
	print(output)


Fixed submission:
import math

ans = []
while True:
	data = input().split()
	a = int(data[0])
	b = data[1]
	c = int(data[2])

	if b == '+':
		ans += [a+c]
	elif b == '-':
		ans += [a-c]
	elif b == '*':
		ans += [a*c]
	elif b == '/':
		ans += [math.floor(a/c)]
	elif b == '?':
		break
	else:
		break

for output in ans:
	print(output)
Buggy python submission (verdict: Runtime Error):
num = int(input())
data = map(int, input().split())

data.sort()

min = data[0]
max = data[-1]
avg = 0

for tmp in data:
	avg += tmp

print(min,max,avg)


Fixed submission:
num = int(input())
data = list(map(int, input().split()))

min = data[0]
max = data[0]
avg = 0

for tmp in data:
        avg += tmp
        if tmp < min:
        	min = tmp
        if tmp > max:
        	max = tmp

print(min,max,avg)
Buggy python submission (verdict: Runtime Error):
s = raw_input()
if s == "1 1 0" or s == "0 0 1":
 print "Open"
else
 print "Close"

Fixed submission:
s = raw_input()
if s == "1 1 0" or s == "0 0 1":
 print "Open"
else:
 print "Close"