Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
import datetime
y1,m1,d1,y2,m2,d2=map(int,input().split())
q=(y2-y1)//400
y2-=400*q
a=688*q
d=datetime.date(y1,m1,d1)
while d<=datetime.date(y2,m2,d2):
    if d.day==13 and d.weekday()==4:a+=1
    d+=datetime.timedelta(days=1)
print(a)


Fixed submission:
import datetime
y1,m1,d1,y2,m2,d2=map(int,input().split())
qq,y1=divmod(y1,400)
y1+=400
qq-=1
q=(y2-y1)//400
y2-=400*q
a=688*(q-qq)
d=datetime.date(y1,m1,d1)
while d<=datetime.date(y2,m2,d2):
    if d.day==13 and d.weekday()==4:a+=1
    d+=datetime.timedelta(days=1)
print(a)

Buggy python submission (verdict: Runtime Error):
import datetime
y1,m1,d1,y2,m2,d2=map(int,input().split())
q=(y2-y1)//400
y2-=400*q
a=688*q
d=datetime.date(y1,m1,d1)
while d<=datetime.date(y2,m2,d2):
    if d.day==13 and d.weekday()==4:a+=1
    d+=datetime.timedelta(days=1)
print(a)


Fixed submission:
import datetime
y1,m1,d1,y2,m2,d2=map(int,input().split())
qq,y1=divmod(y1,400)
y1+=400
qq-=1
q=(y2-y1)//400
y2-=400*q
a=688*(q-qq)
d=datetime.date(y1,m1,d1)
while d<=datetime.date(y2,m2,d2):
    if d.day==13 and d.weekday()==4:a+=1
    d+=datetime.timedelta(days=1)
print(a)
Buggy python submission (verdict: Time Limit Exceeded):
def primeq(x):
    if x==1:return False
    for i in range(2,x):
        if x%i==0:return False
    return True

c=0
for i in range(int(input())):
    if primeq(int(input())):c+=1
print(c)


Fixed submission:
def primeq(x):
    if x==1:return False
    for i in range(2,int(x**.5)+1):
        if x%i==0:return False
    return True

c=0
for i in range(int(input())):
    if primeq(int(input())):c+=1
print(c)
Buggy python submission (verdict: Runtime Error):
a,b,c,d=map(int,input().split())
print((((a-c)**2)+((b-d)**2))**.5)


Fixed submission:
a,b,c,d=map(float,input().split())
dx=a-c
dy=b-d
dd=(dx*dx+dy*dy)**.5
print(dd)
Buggy python submission (verdict: Runtime Error):
n=int(input())
card=[]
for suit in ["S","H","C","D"]:
    for rank in list(map(str,range(1,14))):
        card.append(suit+" "+rank+" ")
for i in range(n):
    card.remove(input())
for c in card:
    print(c)  



Fixed submission:
n=int(input())
card=[]
for suit in ["S","H","C","D"]:
    for rank in list(map(str,range(1,14))):
        card.append(suit+" "+rank)
for i in range(n):
    card.remove(input())
for c in card:
    print(c)
Buggy python submission (verdict: Runtime Error):
while True:
    n,x=map(int, input().split())
    if n==x==0:break
    c=0
    for i in range(math.ceil(n/3),n+1):
        c+=(n-i)//2
    print(c)


Fixed submission:
while True:
    n,x=map(int, input().split())
    if n==x==0:break
    count=0
    for nmin in range(1,n+1):
        for nmed in range(nmin+1,n+1):
            if n+1>x-nmin-nmed>nmed:
                count+=1
    print(count)

Buggy python submission (verdict: Runtime Error):
while True:
    n,x=map(int, input().split())
    if n==x==0:break
    c=0
    for i in range(math.ceil(n/3),n+1):
        c+=(n-i)//2
    print(c)


Fixed submission:
while True:
    n,x=map(int, input().split())
    if n==x==0:break
    count=0
    for nmin in range(1,n+1):
        for nmed in range(nmin+1,n+1):
            if n+1>x-nmin-nmed>nmed:
                count+=1
    print(count)
Buggy python submission (verdict: Runtime Error):
r,c=map(int, input().split())
for i in range(c):
    a=list(map(int, input().split()))
    a.append(sum(a))
    print(*a)


Fixed submission:
r,c=map(int, input().split())
total=[0]*(c+1)
for i in range(r):
    a=list(map(int, input().split()))
    a.append(sum(a))
    print(*a)
    for j in range(c+1):
        total[j]+=a[j]
print(*total)
Buggy python submission (verdict: Runtime Error):
import sys

s = []
for line in sys.stdin:
    s.append(line)
s.lower()
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])


Fixed submission:
import sys

s = ""
for line in sys.stdin:
    s+=line
s=s.lower()
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])

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

s = ""
for line in sys.stdin:
    s.append(line)
s.lower()
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])


Fixed submission:
import sys

s = ""
for line in sys.stdin:
    s+=line
s=s.lower()
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])
Buggy python submission (verdict: Runtime Error):
w=input()
c=0
while True:
    t=input().lower()
    if t=='END_OF_TEXT':
        print(c)
        break
    c+=t.lower().split().count(w)


Fixed submission:
w=input()
c=0
while True:
    t=input()
    if t=='END_OF_TEXT':
        print(c)
        break
    c+=t.lower().split().count(w)
Buggy python submission (verdict: Runtime Error):
a, b = (int(x) for x in input.split())

print(len(str(a + b)))


Fixed submission:
while True:
  try:
    a, b = map(int, input().split(" "))
    print(len(str(a + b)))

  except:
    break

Buggy python submission (verdict: Runtime Error):
while true:
  try:
    a, b = map(int, input.split(" "))
    print(len(str(a + b)))
    
  expect: break


Fixed submission:
while True:
  try:
    a, b = map(int, input().split(" "))
    print(len(str(a + b)))

  except:
    break

Buggy python submission (verdict: Runtime Error):
while True:
  try:
    a, b = map(int, input.split(" "))
    print(len(str(a + b)))
     
  expect: break


Fixed submission:
while True:
  try:
    a, b = map(int, input().split(" "))
    print(len(str(a + b)))

  except:
    break

Buggy python submission (verdict: Runtime Error):
while True:
  try:
    a,b = map(int, input.split(" "))
    print(len(str(a + b)))
     
  expect: break


Fixed submission:
while True:
  try:
    a, b = map(int, input().split(" "))
    print(len(str(a + b)))

  except:
    break

Buggy python submission (verdict: Runtime Error):
while True:
	try:
		a,b = map(int, input.split(" "))
		print(len(str(a + b)))
     
	expect: break


Fixed submission:
while True:
  try:
    a, b = map(int, input().split(" "))
    print(len(str(a + b)))

  except:
    break

Buggy python submission (verdict: Runtime Error):
while True:
  try:
    a, b = map(int, input().split(" "))
    print(len(str(a + b)))
     
  expect: break


Fixed submission:
while True:
  try:
    a, b = map(int, input().split(" "))
    print(len(str(a + b)))

  except:
    break
Buggy python submission (verdict: Runtime Error):
number = int(input())

for i in range(number):
  tri = map(int, input.split(" "))
  if tri[0] > tri[1]:
    buf = tri[0]
    tri[0] = tri[1]
    tri[1] = buf
  if tri[1] > tri[2]:
    buf = tri[1]
    tri[1] = tri[2]
    tri[2] = buf
  if tri[0] * tri[0] + tri[1] * tri[1] == tri[2] * tri[2]:
    print("YES")
  else:
    print("NO")


Fixed submission:
import math

num = int(input())

for i in range(num):
    try:
        sides = list(map(int, input().split(" ")))
        sides.sort()

        if int(math.pow(sides[0], 2)) + int(math.pow(sides[1], 2)) == int(math.pow(sides[2], 2)):
            print("YES")
        else:
            print("NO")

    except:
        break

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

for i in range(number):
  tri = map(int, input().split(" "))
  if tri[0] > tri[1]:
    buf = tri[0]
    tri[0] = tri[1]
    tri[1] = buf
  if tri[1] > tri[2]:
    buf = tri[1]
    tri[1] = tri[2]
    tri[2] = buf
  if tri[0] * tri[0] + tri[1] * tri[1] == tri[2] * tri[2]:
    print("YES")
  else:
    print("NO")


Fixed submission:
import math

num = int(input())

for i in range(num):
    try:
        sides = list(map(int, input().split(" ")))
        sides.sort()

        if int(math.pow(sides[0], 2)) + int(math.pow(sides[1], 2)) == int(math.pow(sides[2], 2)):
            print("YES")
        else:
            print("NO")

    except:
        break
Buggy python submission (verdict: Runtime Error):
moutain = [0 for i in range(10]
for i in range(10):
    moutain[i] = int(raw_input())
moutain.sort().reverse()
for i in range(3):
    moutain[i]


Fixed submission:
moutain = [0 for i in range(10)]
for i in range(10):
    moutain[i] = int(raw_input())
moutain.sort(reverse=True)
for i in range(3):
    print moutain[i]

Buggy python submission (verdict: Runtime Error):
moutain = [0 for i in range(10)]
for i in range(10):
    moutain[i] = int(raw_input())
moutain.sort().reverse()
for i in range(3):
    moutain[i]


Fixed submission:
moutain = [0 for i in range(10)]
for i in range(10):
    moutain[i] = int(raw_input())
moutain.sort(reverse=True)
for i in range(3):
    print moutain[i]
Buggy python submission (verdict: Runtime Error):
for i in range(3):
    a,b,c = map(int, raw_input().split())
    if a*a == b*b + c*c:
        print "YES"
    else:
        print "NO"


Fixed submission:
n = int(raw_input())
for i in range(n):
    num = map(int, raw_input().split())
    num.sort(reverse=True)
    if num[0]**2 == num[1]**2 + num[2]**2:
        print "YES"
    else:
        print "NO"

Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
for i in range(n):
    a,b,c = map(int, raw_input().split()).sort(reverse = True)
    if a*a == b*b + c*c:
        print "YES"
    else:
        print "NO"


Fixed submission:
n = int(raw_input())
for i in range(n):
    num = map(int, raw_input().split())
    num.sort(reverse=True)
    if num[0]**2 == num[1]**2 + num[2]**2:
        print "YES"
    else:
        print "NO"
Buggy python submission (verdict: Runtime Error):
import math
price = 100000.0
n = int(raw_input())
for i in range(n):
    price = ceil((price * 1.05) / 1000) * 1000


Fixed submission:
import math
n = int(input())
money = 100000
for i in range(n):
    money = math.ceil((money * 1.05) / 1000)*1000
print(money)
Buggy python submission (verdict: Runtime Error):
b = raw_input()
import string
t = string.maketrans("abcdefghijklmnopqrstuvwxyz","bcdefghijklmnopqrstuvwxyza")
while not ('the' in s or 'this' in s or 'that' in s):
    b = b.translate(t)
print b


Fixed submission:
try:
  while True:
    b = raw_input()
    import string
    t = string.maketrans("abcdefghijklmnopqrstuvwxyz","bcdefghijklmnopqrstuvwxyza")
    while not("this" in b or "the" in b or "that" in b):
        b = b.translate(t)
    print b
except:
    pass

Buggy python submission (verdict: Runtime Error):
b = ""
try:
    b += raw_input()
except:
    break
import string
t = string.maketrans("abcdefghijklmnopqrstuvwxyz","bcdefghijklmnopqrstuvwxyza")
while not ('the' in b or 'this' in b or 'that' in b):
    b = b.translate(t)
print b


Fixed submission:
try:
  while True:
    b = raw_input()
    import string
    t = string.maketrans("abcdefghijklmnopqrstuvwxyz","bcdefghijklmnopqrstuvwxyza")
    while not("this" in b or "the" in b or "that" in b):
        b = b.translate(t)
    print b
except:
    pass
Buggy python submission (verdict: Runtime Error):
n = map(int, raw_input().split())
n.sort(revers=True)
for i in n:
    print i,


Fixed submission:
s = list(map(int, input().split()))
print(" ".join(map(str, sorted(s, reverse=True))))
Buggy python submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!

a = raw_input().lower()
s = a.split()
ss = ""
tmp = ""
n = 0
for i in s:
    if len(ss) < len(i):
        ss = i
for i in s:
    i+=" " 
    if a.count(i) > n:
        n = a.count(i)
        tmp = i.trip()
print tmp, ss


Fixed submission:
word = sorted(input().split())
length = len(word)
cnt = 0
cc = ""
w = ""
wc = 0
for i in word:
    if cnt < len(i):
        cnt = len(i)
        cc = i
for i in range(length):
    if word.count(word[i]) > wc:
        wc = word.count(word[i])
        w = word[i]
print(w, cc)
Buggy python submission (verdict: Runtime Error):
while True:
    try:
        l = map(int, raw_input().split(","))
        v1 = l.pop(10)
        v2 = l.pop(10)
        p = v1*float(sum(l))/(v1+v2)
        for i in range(10):
            p -= l[i]
            if p <= 0:
                print i+1
                break


Fixed submission:
while True:
    try:
        l = map(int, raw_input().split(","))
        v1 = l.pop(10)
        v2 = l.pop(10)
        p = v1*float(sum(l))/(v1+v2)
        for i in range(10):
            p -= l[i]
            if p <= 0:
                print i+1
                break
    except:
        break

Buggy python submission (verdict: Runtime Error):
while True:
    try:
        l = map(int, raw_input().split(","))
        v1 = l.pop(10)
        v2 = l.pop(10)
        p = v1*float(sum(l))/(v1+v2)
        for i in range(10):
            p -= l[i]
            if p <= 0:
                print i+1
                break
　　　except:
      break


Fixed submission:
while True:
    try:
        l = map(int, raw_input().split(","))
        v1 = l.pop(10)
        v2 = l.pop(10)
        p = v1*float(sum(l))/(v1+v2)
        for i in range(10):
            p -= l[i]
            if p <= 0:
                print i+1
                break
    except:
        break

Buggy python submission (verdict: Runtime Error):
while True:
    try:
        l = map(int, raw_input().split(","))
        v1 = l.pop(10)
        v2 = l.pop(10)
        p = v1*float(sum(l))/(v1+v2)
        for i in range(10):
            p -= l[i]
            if p <= 0:
                print i+1
                break
　　　except:
      　break


Fixed submission:
while True:
    try:
        l = map(int, raw_input().split(","))
        v1 = l.pop(10)
        v2 = l.pop(10)
        p = v1*float(sum(l))/(v1+v2)
        for i in range(10):
            p -= l[i]
            if p <= 0:
                print i+1
                break
    except:
        break

Buggy python submission (verdict: Runtime Error):
while True:
　　try:
        l = map(int, raw_input().split(","))
        v1 = l.pop(10)
        v2 = l.pop(10)
        p = v1*float(sum(l))/(v1+v2)
        for i in range(10):
            p -= l[i]
            if p <= 0:
                print i+1
                break
　　except:
      　break


Fixed submission:
while True:
    try:
        l = map(int, raw_input().split(","))
        v1 = l.pop(10)
        v2 = l.pop(10)
        p = v1*float(sum(l))/(v1+v2)
        for i in range(10):
            p -= l[i]
            if p <= 0:
                print i+1
                break
    except:
        break
Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
a = map(int, raw_input().split())
for i in range(1, n-1):
    v = a[i]
    j = i -1
    while j >= 0 and a[j] > v:
        a[j+1] = a[j]
        j--
    a[j+1] = v
    print a


Fixed submission:
n = int(input())
num = list(map(int, input().split()))
cnt = 1
print(" ".join(map(str,num)))
while cnt < len(num):
    for i in range(cnt, 0, -1):
        if num[i] < num[i-1]:
            num[i], num[i-1] = num[i-1], num[i]
    print(" ".join(map(str,num)))
    cnt+=1

Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
a = map(int, raw_input().split())
print " ".join(map(str, a))
for i in range(1, n):
    v = a[i]
    j = i -1
    while j >= 0 and a[j] > v:
        a[j+1] = a[j]
        j--
    a[j+1] = v
    print " ".join(map(str, a))


Fixed submission:
n = int(input())
num = list(map(int, input().split()))
cnt = 1
print(" ".join(map(str,num)))
while cnt < len(num):
    for i in range(cnt, 0, -1):
        if num[i] < num[i-1]:
            num[i], num[i-1] = num[i-1], num[i]
    print(" ".join(map(str,num)))
    cnt+=1
Buggy python submission (verdict: Runtime Error):
x = int(raw_input())
print Math.pow(x, 3)


Fixed submission:
x = int(raw_input())
print pow(x, 3)
Buggy python submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
W, H, x, y, r = map(int, raw_input().split())
if r <= x and r <= y and x+r <= W y+r <= H:
    print "Yes"
else:
    print "No"


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


Fixed submission:
while True:
    a, b, c = input().split()
    a = int(a)
    c = int(c)
    ans = 0
    if b == "?":
        break
    elif b == "+":
        ans = a+c
    elif b == "-":
        ans = a-c
    elif b == "*":
        ans = a*c
    elif b == "/":
        ans = a//c
    print(ans)

Buggy python submission (verdict: Runtime Error):
while 1:
    a, b, c = raw_input().split()
    if b == "?":
        break
    a = int(a)
    c = int(c)
    if b == "+":
        print a+c
    elif b == "*":
        print a*c
    elif b == "/"
        print a//c


Fixed submission:
while True:
    a, b, c = input().split()
    a = int(a)
    c = int(c)
    ans = 0
    if b == "?":
        break
    elif b == "+":
        ans = a+c
    elif b == "-":
        ans = a-c
    elif b == "*":
        ans = a*c
    elif b == "/":
        ans = a//c
    print(ans)
Buggy python submission (verdict: Runtime Error):
H, W = map(int, raw_input().split()
for i in range(H):
    print "W" * W


Fixed submission:
while True:
    H, W = map(int, input().split())
    if H == W == 0:
        break
    for i in range(H):
        print("#"*W)
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = map(int, raw_input().split()
    if H == W == 0:
        break
    for i in range(H):
        print "W" * W
    print


Fixed submission:
while True:
    H, W = map(int, input().split())
    if H == W == 0:
        break
    for i in range(H):
        print("#"*W)
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = map(int, raw_input().split()
    if H == W == 0:
        break
    for i in range(H):
        print "#" * W
    print


Fixed submission:
while True:
    H, W = map(int, input().split())
    if H == W == 0:
        break
    for i in range(H):
        print("#"*W)
    print()
Buggy python submission (verdict: Runtime Error):
while True:
    H, W = map(int, raw_input().split())
    if H == W == 0:
        break
    for i in range(H):
        if W == 1 and i % 2 == 1:
            print "#"
        elif W == 1 abd i % 2 == 0:
            print "."
        elif i % 2 == 0:
            print "#." * (W / 2) + "#" * (W%2)
        else:
            print ".#" * (W / 2) + "." * (W%2)
    print



Fixed submission:
while True:
    H, W = map(int, input().split())
    if H == W == 0:
       break
    for i in range(H):
       if i % 2 == 0:
           print("#."*(W//2) + "#"*(W%2))
       else:
           print(".#"*(W//2) + "."*(W%2))
    print()
Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
num = map(int, raw_input().split())
num.sort(revers = True)
print num


Fixed submission:
n = int(input())
num = reversed(input().split())
print(" ".join(num))
Buggy python submission (verdict: Runtime Error):
home = [[[0 for r in range(10)] for f in range(3)] for b in range(4)]
n = int(raw_input())
for i in range(n):
    b, f, r, v = map(int, raw_input().split())
    home[b-1][f-1][r-1] += v

for i in range(4):
    for j in range(3):
        print " ".join(map(str, home[i][j]))
        if j == 2 and i != 3


Fixed submission:
n = int(input())
house = [[[0 for i in range(10)] for j in range(3)] for k in range(4)]
for i in range(n):
    b, f, r, v = map(int, input().split())
    house[b-1][f-1][r-1]+=v
    
for i in range(4):
    for j in range(3):
        for k in range(10):
            print(" "+str(house[i][j][k]), end="")
        print()
    if i != 3:
        print("#"*20)

Buggy python submission (verdict: Runtime Error):
home = [[[0 for r in range(10)] for f in range(3)] for b in range(4)]
n = int(raw_input())
for i in range(n):
    b, f, r, v = map(int, raw_input().split())
    home[b-1][f-1][r-1] += v

for i in range(4):
    for j in range(3):
        print "",
        print " ".join(map(str, home[i][j]))
        if j == 2 and i != 3


Fixed submission:
n = int(input())
house = [[[0 for i in range(10)] for j in range(3)] for k in range(4)]
for i in range(n):
    b, f, r, v = map(int, input().split())
    house[b-1][f-1][r-1]+=v
    
for i in range(4):
    for j in range(3):
        for k in range(10):
            print(" "+str(house[i][j][k]), end="")
        print()
    if i != 3:
        print("#"*20)

Buggy python submission (verdict: Runtime Error):
home = [[[0 for r in range(10)] for f in range(3)] for b in range(4)]
n = int(raw_input())
for i in range(n):
    b, f, r, v = map(int, raw_input().split())
    home[b-1][f-1][r-1] += v

for i in range(4):
    for j in range(3):
        print "",
        print " ".join(map(str, home[i][j]))
        if j == 2 and i != 3
            print "#" * 20


Fixed submission:
n = int(input())
house = [[[0 for i in range(10)] for j in range(3)] for k in range(4)]
for i in range(n):
    b, f, r, v = map(int, input().split())
    house[b-1][f-1][r-1]+=v
    
for i in range(4):
    for j in range(3):
        for k in range(10):
            print(" "+str(house[i][j][k]), end="")
        print()
    if i != 3:
        print("#"*20)
Buggy python submission (verdict: Runtime Error):
for I in range(0, 9)
 for j in range(0, 9)
  print(str(I) + "*" + str(j) + "=" + str(I * j))


Fixed submission:
def multi():
    for i in range(1, 10):
        for j in range(1, 10):
            print(str(i) + "x" + str(j) + "=" + str(i * j))

if __name__ == '__main__':
    multi()

Buggy python submission (verdict: Runtime Error):
for I in range(1, 9)
  for j in range(1, 9)
    print(str(i) + "×" + str(j) + "=" + str(I * j))


Fixed submission:
def multi():
    for i in range(1, 10):
        for j in range(1, 10):
            print(str(i) + "x" + str(j) + "=" + str(i * j))

if __name__ == '__main__':
    multi()

Buggy python submission (verdict: Runtime Error):
for I in range(1, 9):
  for j in range(1, 9):
    print(str(i) + "×" + str(j) + "=" + str(I * j))


Fixed submission:
def multi():
    for i in range(1, 10):
        for j in range(1, 10):
            print(str(i) + "x" + str(j) + "=" + str(i * j))

if __name__ == '__main__':
    multi()
Buggy python submission (verdict: Runtime Error):
if __name__ == '__main__':
    hight = input().split()
    num = [int(n) for n in hight]
    print(sorted(num, reverse=True)[0])
    print(sorted(num, reverse=True)[1])
    print(sorted(num, reverse=True)[2])



Fixed submission:
num = [int(input()) for i in range(10)]
num.sort(reverse=True)
for i in range(3):
    print(num[i])

Buggy python submission (verdict: Runtime Error):
if __name__ == '__main__':
    hight = int(input()).split()
    print(sorted(num, reverse=True)[0])
    print(sorted(num, reverse=True)[1])
    print(sorted(num, reverse=True)[2])



Fixed submission:
num = [int(input()) for i in range(10)]
num.sort(reverse=True)
for i in range(3):
    print(num[i])

Buggy python submission (verdict: Runtime Error):
if __name__ == '__main__':
    hight = int(input()).split()
    print(sorted(num, reverse=True)[i] for i in range(0, 3))



Fixed submission:
num = [int(input()) for i in range(10)]
num.sort(reverse=True)
for i in range(3):
    print(num[i])

Buggy python submission (verdict: Runtime Error):
hight = input().split()
num = [int(n) for n in hight]
print(sorted(num)[-1])
print(sorted(num)[-2])
print(sorted(num)[-3])


Fixed submission:
num = [int(input()) for i in range(10)]
num.sort(reverse=True)
for i in range(3):
    print(num[i])

Buggy python submission (verdict: Runtime Error):
hight = input().split("\n")
num = [int(n) for n in hight]
print(sorted(num)[-1])
print(sorted(num)[-2])
print(sorted(num)[-3])


Fixed submission:
num = [int(input()) for i in range(10)]
num.sort(reverse=True)
for i in range(3):
    print(num[i])

Buggy python submission (verdict: Runtime Error):
num = [int(input()) for i in range(10)]
num.sort(reverse=True)
for i in range[0:3]:
    print(num[i])


Fixed submission:
num = [int(input()) for i in range(10)]
num.sort(reverse=True)
for i in range(3):
    print(num[i])
Buggy python submission (verdict: Runtime Error):
if __name__ == '__main__':
    print(int(x) ** 3)


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

Buggy python submission (verdict: Runtime Error):
if __name__ == '__main__':
    print(x ** 3)


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