Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
i = 1
while True:
    x = int (raw_input())
    if x == 0:
    break
    print ("case {0}: {1} ").format(i,x)
i=i+1

Fixed submission:
def main():
    loop_count = 0
    while 1:
        loop_count +=1
        param = raw_input()
        if param == "0":
            break
        else:
            print "Case %s: %s" % (loop_count,param)

if __name__ == '__main__':
    main()

Buggy python submission (verdict: Time Limit Exceeded):
i = 1

while True:
    x = 'i+1(raw_input())'
    if x == 0:
        break
    print ("case {0}: {1}").format(i,x)
    i = i+1

Fixed submission:
def main():
    loop_count = 0
    while 1:
        loop_count +=1
        param = raw_input()
        if param == "0":
            break
        else:
            print "Case %s: %s" % (loop_count,param)

if __name__ == '__main__':
    main()

Buggy python submission (verdict: Runtime Error):
def main():
    loop_count = 0
    while 1:
        loop_count += 1
        param = raw_input()
        if param == "0":
            break
        else:
            print "Case %s: %s" %(loop_count,param)

if__name__ == '__main__':
    main()

Fixed submission:
def main():
    loop_count = 0
    while 1:
        loop_count +=1
        param = raw_input()
        if param == "0":
            break
        else:
            print "Case %s: %s" % (loop_count,param)

if __name__ == '__main__':
    main()
Buggy python submission (verdict: Runtime Error):
while l:
    x = map(int,raw_input().split())
    x.sort()
    if sum(x) == 0:
    break
    else:
    print x[0], x[1]

Fixed submission:
while 1:
    x = map(int, raw_input().split())
    x.sort()
    if sum(x) == 0:
        break
    else:
        print x[0],x[1]

Buggy python submission (verdict: Runtime Error):
while 1:
    x = map(int,raw_input().split())
    x.sort()
    if sum(x) == 0:
    break
    else:
    print x[0], x[1]

Fixed submission:
while 1:
    x = map(int, raw_input().split())
    x.sort()
    if sum(x) == 0:
        break
    else:
        print x[0],x[1]

Buggy python submission (verdict: Runtime Error):
while 1:
    x = map(x, raq_input().split())
    x.sort()
    if sum(x) == 0:
        break
    else:
        print x[0],x[1]

Fixed submission:
while 1:
    x = map(int, raw_input().split())
    x.sort()
    if sum(x) == 0:
        break
    else:
        print x[0],x[1]

Buggy python submission (verdict: Runtime Error):
while 1:
    x = map(x, raw_input().split())
    x.sort()
    if sum(x) == 0:
        break
    else:
        print x[0],x[1]

Fixed submission:
while 1:
    x = map(int, raw_input().split())
    x.sort()
    if sum(x) == 0:
        break
    else:
        print x[0],x[1]
Buggy python submission (verdict: Runtime Error):
a,b = map(float, raw_input().split())
d = (int) (a/b)
r = (int) (a%b)
f = float (a/b)
print ("{0} {1} {2:6f} .format(d,r,f))

Fixed submission:
a,b = map(float, raw_input().split())
d = (int) (a/b)
r = (int) (a%b)
f = float (a/b)

print("{0} {1} {2:6f}".format(d,r,f))

Buggy python submission (verdict: Runtime Error):
a,b = map(float, raw_input().split())
d = (int) (a/b)
r = (int) (a%b)
f = (float) (a/b)
print ("{0} {1} {2:6f} .format(d,r,f))

Fixed submission:
a,b = map(float, raw_input().split())
d = (int) (a/b)
r = (int) (a%b)
f = float (a/b)

print("{0} {1} {2:6f}".format(d,r,f))

Buggy python submission (verdict: Runtime Error):
a,b = map(float, raw_input().split())
d = (int) (a/b)
r = (int) (a%b)
f = float (a/b)

print({0} {1} {2:6f}.format(d,r,f))

Fixed submission:
a,b = map(float, raw_input().split())
d = (int) (a/b)
r = (int) (a%b)
f = float (a/b)

print("{0} {1} {2:6f}".format(d,r,f))
Buggy python submission (verdict: Runtime Error):
while True:
    s = raw_input()
    if s.split() [1] == "?" : 
    break
    print eval(s)

Fixed submission:
while True:
    s = raw_input()
    if s.split() [1] == "?" : break
    print eval(s)

Buggy python submission (verdict: Runtime Error):
while True:
s = raw_input())

if s.split()[1] = "1"
break
print.eval(s)

Fixed submission:
while True:
    s = raw_input()
    if s.split() [1] == "?" : break
    print eval(s)
Buggy python submission (verdict: Runtime Error):
n = int (raw_input())
a = map(int, raw_input().split())
a.reverse()
for i in a:
print i

Fixed submission:
n = int(raw_input())
a = map(int,raw_input().split())
a.reverse()
for i in a:
    print i,

Buggy python submission (verdict: Runtime Error):
n = int (raw_input())
a = map(int, raw_input().split())
a.reverse.()
for i in a:
print i

Fixed submission:
n = int(raw_input())
a = map(int,raw_input().split())
a.reverse()
for i in a:
    print i,
Buggy python submission (verdict: Runtime Error):
cards  =[]
for suit in ('S','H','C','D'):
    for num in range(1,14):
        cards.append(suit + ' ' + str(num))

N  = int (raw_input());

for n in xrange(N):
    x,y = raw_input().split()
    card.remove(x+""+y);
for card in cards:
    print card

Fixed submission:
cards = []
for suit in ('S','H','C','D'):
    for num in range(1,14):
        cards.append(suit+' '+str(num))
 
N = int(raw_input());
 
for n in xrange(N):
    x,y =raw_input().split()
    cards.remove(x+" "+y);
for card in cards:
    print card
Buggy python submission (verdict: Runtime Error):
x = int().split()
a = int(nums[0])
b = int(nums[1])
print(a*b,(a+b)*2)

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

Buggy python submission (verdict: Runtime Error):
x = input().split()
a = (nums[0])
b = (nums[1])
print(a*b,(a+b)*2)

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

Buggy python submission (verdict: Runtime Error):
atai = input().split()
a = (atai[0])
b = (atai[1])
print(a*b,(a+b)*2)

Fixed submission:
a,b=map(int,input().split())
print(a*b,(a+b)*2)
Buggy python submission (verdict: Runtime Error):
S = int(input())
h = S // 3600
m = S % 3600 // 60
s = (S % 3600) - (m * 60)
print(h,m,s sep=':')

Fixed submission:
S = int(input())
h = S // 3600
m = S % 3600 // 60
s = (S % 3600) - (m * 60)
print(h,m,s,sep=':')
Buggy python submission (verdict: Runtime Error):
W,H,x,y,r = map(int, input().split(','))

if x >= r and x<= W-r \
and y >= r and y <= H-r:
    print('Yes')
else:
    print('No')

    


Fixed submission:
W,H,x,y,r = map(int, input().split())

if x >= r and x<= W-r \
and y >= r and y <= H-r:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
int x,y = input().split()
print(x * y + " " + (x + y) / 2)

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

Buggy python submission (verdict: Runtime Error):
int x,y = input().split()
print(x * y + " " + (x + y) * 2)

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

Buggy python submission (verdict: Runtime Error):
int n = input().split()
x = n[0]
y = n[1]
print(x * y + " " + (x + y) * 2)

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

Buggy python submission (verdict: Runtime Error):
int x,y = input().split()
if x == y:
    print(x * y + " " + x * 4)
else
    print(x * y + " " + (x + y) * 2)

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

Buggy python submission (verdict: Runtime Error):
x,y = input().split()
if x == y:
    print(x * y + " " + x * 4)
else
    print(x * y + " " + (x + y) * 2)

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

Buggy python submission (verdict: Runtime Error):
n = input().split()
x = n[0]
y = n[1]
if x == y:
    print(x * y + " " + x * 4)
else
    print(x * y + " " + (x + y) * 2)

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

Buggy python submission (verdict: Runtime Error):
n = input().split()
x = int(n[0])
y = int(n[1])
if x == y:
    print(x * y + " " + x * 4)
else
    print(x * y + " " + (x + y) * 2)

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

Buggy python submission (verdict: Runtime Error):
x,y = input().split()
print(x * y, x * 2 + y * 2)

Fixed submission:
x,y = map(int, input().split())
print(x * y, (x + y) * 2)
Buggy python submission (verdict: Runtime Error):
n = int(input())
h = n / 3600 #???
n %= 3600

m = n /60 #???
n %= 60

s = n #?§?

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

Fixed submission:
n = int(input())
h = int(n / 3600)
n %= 3600
m = int(n / 60)
n %= 60
s = int(n)
print(str(h) + ":" + str(m) + ":" + str(s))

Buggy python submission (verdict: Runtime Error):
n = input()
h = n / 3600 #???
n %= 3600

m = n /60 #???
n %= 60

s = n #?§?

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

Fixed submission:
n = int(input())
h = int(n / 3600)
n %= 3600
m = int(n / 60)
n %= 60
s = int(n)
print(str(h) + ":" + str(m) + ":" + str(s))
Buggy python submission (verdict: Runtime Error):
x=(input())
print(x*x*x)


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


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

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


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

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=int(input())
c=a*b;d=(a+b)*2
print(c d)


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

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=int(input())
print(a*b,(a+b)*2,sep=" ")


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

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=int(input())
print(f"{a*b} {(a+b)*2}")


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

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=int(input())
print(f"{a*b}{(a+b)*2}")


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

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=int(input())
print(f"{a*b},{(a+b)*2}")


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

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


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

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


Fixed submission:
a,b=map(int,input().split())
print(a*b,(a+b)*2)
Buggy python submission (verdict: Runtime Error):
x=input()
print(x/3600,x%3600/60,x%3600%60,sep=":")


Fixed submission:
S=int(input())
h=S//3600
m=S%3600//60
s=S%3600%60
print(f"{h}:{m}:{s}")

Buggy python submission (verdict: Runtime Error):
S=map(int,input())
h=(int)(S/3600)
m=(int)(S%3600/60)
s=(int)(S%3600%60)
print(f"{h}:{m}:{s}")


Fixed submission:
S=int(input())
h=S//3600
m=S%3600//60
s=S%3600%60
print(f"{h}:{m}:{s}")

Buggy python submission (verdict: Runtime Error):
S=map(int,input())
h=(int)S/3600
m=(int)S%3600/60
s=(int)S%3600%60
print(f"{h}:{m}:{s}")


Fixed submission:
S=int(input())
h=S//3600
m=S%3600//60
s=S%3600%60
print(f"{h}:{m}:{s}")
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,input().split())
if(a<b):
    w=a;a=b;b=w;
if(b<c):
    w=b;b=c;c=w;
if(a<b)
    w=a;a=b;b=w;
print(f"{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):
W,H,x,y,r=map(int,input().split())
W=-r;H=-r;
if min(x,y)>=r and x<=W and y<=H:
    print(Yes)
else:
    print(No)


Fixed submission:
W,H,x,y,r=map(int,input().split())
if min([x,y])>=r and x<=(W-r) and y<=(H-r):
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
W,H,x,y,r=map(int,input().split())
W=-r;H=-r;
if min([x,y])>=r and x<=W and y<=H:
    print(Yes)
else:
    print(No)


Fixed submission:
W,H,x,y,r=map(int,input().split())
if min([x,y])>=r and x<=(W-r) and y<=(H-r):
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
W,H,x,y,r=map(int,input().split())
W=-r;H=-r;
if r<=x and r<=y and x<=W and y<=H:
    print(Yes)
else:
    print(No)


Fixed submission:
W,H,x,y,r=map(int,input().split())
if min([x,y])>=r and x<=(W-r) and y<=(H-r):
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
W,H,x,y,r=map(int,input().split())
W=-r;H=-r;
if min([x,y]>=r)and x<=W and y<=H:
    print("Yes")
else:
    print("No")


Fixed submission:
W,H,x,y,r=map(int,input().split())
if min([x,y])>=r and x<=(W-r) and y<=(H-r):
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
W,H,x,y,r=map(int,input().split())
if min([x,y]>=r)and x<=(W-r) and y<=(H-r):
    print("Yes")
else:
    print("No")


Fixed submission:
W,H,x,y,r=map(int,input().split())
if min([x,y])>=r and x<=(W-r) and y<=(H-r):
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Time Limit Exceeded):
x=int(input())
i=1
while not x==0:
    print(f"Case {i}: {x}")
    i=i+1


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

Buggy python submission (verdict: Time Limit Exceeded):
x=int(input())
i=1;
while True:
   if x==0:
     break
   print(f"Case {i}: {x}")


Fixed submission:
i = 0
while True:
    x = int(input()); i += 1
    if x == 0: break
    print("Case {}: {}".format(i, x))
Buggy python submission (verdict: Runtime Error):
import java.util.Scanner;
class Main
{
 public static void main(String args[])
 {
  int a,b;
  Scanner sc = new Scanner(System.in);
  while(True){
  a=sc.nextInt();
  b=sc.nestInt();
  if(a==0 && b==0)
    break;
  else if(a<b)
    System.out.println(a +b);
  else
    System.out.println(b +a);}
 }
}


Fixed submission:
while True:
   a,b=map(int,input().split())
   if a==0 and b==0:
     break
   elif a<b:
     print(a,b)
   else:
     print(b,a)

Buggy python submission (verdict: Runtime Error):
import java.util.Scanner;
class Main
{
 public static void main(String args[])
 {
  int a,b;
  Scanner sc = new Scanner(System.in);
  while(True){
  a=sc.nextInt();
  b=sc.nestInt();
  if(a==0 && b==0)
    break;
  else if(a<b)
    System.out.println(a+" "+b);
  else
    System.out.println(b+" "+a);}
 }
}


Fixed submission:
while True:
   a,b=map(int,input().split())
   if a==0 and b==0:
     break
   elif a<b:
     print(a,b)
   else:
     print(b,a)
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,input().split())
g=0
while a<=b:
    if c%i==0
       g=g+1
    a=a+1
print(g)


Fixed submission:
a,b,c=map(int,input().split())
g=0
while a<=b:
    if c%a==0:
       g=g+1
    a=a+1
print(g)

Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,input().split())
g=0
while a<=b:
    if c%i==0:
       g=g+1
    a=a+1
print(g)


Fixed submission:
a,b,c=map(int,input().split())
g=0
while a<=b:
    if c%a==0:
       g=g+1
    a=a+1
print(g)
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
s=a//b
r=a%b
f=double(a)/b
print(s,r,f)


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

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
s=a//b
r=a%b
f=a/b
print(s,r,double(f))


Fixed submission:
a,b=map(int,input().split())
print(a//b,a%b,"{0:10.20f}".format(a/b))
Buggy python submission (verdict: Runtime Error):
import math
r=int(input())
m=r*r*math.pi
s=2*r*math.pi
print(m s)


Fixed submission:
import math
r=float(input())
m=r*r*math.pi
s=2*r*math.pi
print(m,s)

Buggy python submission (verdict: Runtime Error):
import math
r=int(input())
m=r*r*math.pi
s=2*r*math.pi
print(m,s)


Fixed submission:
import math
r=float(input())
m=r*r*math.pi
s=2*r*math.pi
print(m,s)

Buggy python submission (verdict: Runtime Error):
import math
r=double(input())
m=r*r*math.pi
s=2*r*math.pi
print(m,s)


Fixed submission:
import math
r=float(input())
m=r*r*math.pi
s=2*r*math.pi
print(m,s)
Buggy python submission (verdict: Runtime Error):
a,op,b=map(str,input().split())
while op not '?':
 if op=='+':
   print(int(a)+int(b))
 elif op=='-':
   print(int(a)-int(b))
 elif op=='*':
   printf(int(a)*int(b))
 elif op=='/':
   printf(int(a)//int(b))
 a,op,b=map(str,input().split())



Fixed submission:
while True:
 a,op,b=map(str,input().split())
 if op=='+':
   print(int(a)+int(b))
 elif op=='-':
   print(int(a)-int(b))
 elif op=='*':
   print(int(a)*int(b))
 elif op=='/':
   print(int(a)//int(b))
 elif op=='?':
   break

Buggy python submission (verdict: Runtime Error):
a,op,b=map(str,input().split())
while op!='?':
 if op=='+':
   print(int(a)+int(b))
 elif op=='-':
   print(int(a)-int(b))
 elif op=='*':
   printf(int(a)*int(b))
 elif op=='/':
   printf(int(a)//int(b))
 a,op,b=map(str,input().split())



Fixed submission:
while True:
 a,op,b=map(str,input().split())
 if op=='+':
   print(int(a)+int(b))
 elif op=='-':
   print(int(a)-int(b))
 elif op=='*':
   print(int(a)*int(b))
 elif op=='/':
   print(int(a)//int(b))
 elif op=='?':
   break

Buggy python submission (verdict: Runtime Error):
while True:
 a,op,b=map(str,input().split())
 if op=='+':
   print(int(a)+int(b))
 elif op=='-':
   print(int(a)-int(b))
 elif op=='*':
   printf(int(a)*int(b))
 elif op=='/':
   printf(int(a)//int(b))
 elif op=='?':
   break


Fixed submission:
while True:
 a,op,b=map(str,input().split())
 if op=='+':
   print(int(a)+int(b))
 elif op=='-':
   print(int(a)-int(b))
 elif op=='*':
   print(int(a)*int(b))
 elif op=='/':
   print(int(a)//int(b))
 elif op=='?':
   break
Buggy python submission (verdict: Runtime Error):
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
while i<n:
 j=int(input())
 if max<j:
  max=j
 if min>j:
  min=j
 g+=j
 i=i+1
print(mi,max,j)


Fixed submission:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list(map(int,input().split()))
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
 i+=1
print(min,max,g)

Buggy python submission (verdict: Runtime Error):
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
while i<n:
 j=int(input())
 if max<j:
  max=j
 if min>j:
  min=j
 g+=j
 i=i+1
print(min,max,g)


Fixed submission:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list(map(int,input().split()))
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
 i+=1
print(min,max,g)

Buggy python submission (verdict: Runtime Error):
n=int(input())
max=-1000001;min=1000001;g=0;
num+=map(int,input().split())
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)


Fixed submission:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list(map(int,input().split()))
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
 i+=1
print(min,max,g)

Buggy python submission (verdict: Runtime Error):
n=int(input())
max=-1000001;min=1000001;g=0;
num=[map(int,input().split())]
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)


Fixed submission:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list(map(int,input().split()))
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
 i+=1
print(min,max,g)

Buggy python submission (verdict: Runtime Error):
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=[]
while i<n:
 num.append(int(input()))
 i=i+1
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)


Fixed submission:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list(map(int,input().split()))
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
 i+=1
print(min,max,g)

Buggy python submission (verdict: Runtime Error):
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=[]
while i<n:
 num.append(int(input().split()))
 i=i+1
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)


Fixed submission:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list(map(int,input().split()))
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
 i+=1
print(min,max,g)

Buggy python submission (verdict: Runtime Error):
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list()
while i<n:
 num+=map(int,input().split())
 i=i+1
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)


Fixed submission:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list(map(int,input().split()))
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
 i+=1
print(min,max,g)

Buggy python submission (verdict: Runtime Error):
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list()
while i<n:
 j=int(input().split())
 if max<j:
  max=j
 if min>j:
  min=j
 g+=j
 i+=1
print(min,max,g)


Fixed submission:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list(map(int,input().split()))
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
 i+=1
print(min,max,g)
Buggy python submission (verdict: Runtime Error):
import java.util.Scanner;
class Main{
 public static void main(String aegs[]){
  int w,h,i,j;
  Scanner sc = new Scanner(System.in);
  while(true){
   h=sc.nextInt();
   w=sc.nextInt();
   if(h==0 && w==0)
    break;
   for(i=0;i<h;i++){
    for(j=0;j<w;j++)
     System.out.print("#");
   System.out.println();}
   System.out.println();
  }
 }
}


Fixed submission:
while True:
    a,b=map(int,input().split())
    if a==0 and b==0:break
    for i in range (a):
        print('#'*b)
    print()
Buggy python submission (verdict: Runtime Error):
while True:
 m,f,r=map(int,input().split())
 g=m+f
 if m==-1 and f==-1 and r==-1:
  break
 elif m==-1 or g==-1 or g>30:
  print("F")
 elif g>=80:
  print("A")
 elif 65<=g<80:
  print("B")
 elif 50<=g<65 or 30<=g<50 and r>=50:
  print("C")
 elif 30<=g<50
  print("D")


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


Fixed submission:
while True:
    p=0
    n,x=map(int,input().split())
    if n==0 and x==0:
        break
    for i in range(1,n+1):
        for j in range(2,n+1):
            if i==j:
                break
            for k in range(3,n+1):
                if i==k or j==k:
                    break
                g=i+j+k
                if x==g:
                    p+=1
    print(p)