Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
count = 0
W = input().lower()
T = ""
while True:
    try:
        if T[0] == "END_OF_TEXT":
            break
        for t in T:
            if W == t:
                count += 1 
        T = [x.lower() for x in input().split()]
    except EOFError:
        break
print(count)

Fixed submission:
count = 0
W = input().lower()
T = [0]
while True:
    try:
        if T[0] == "END_OF_TEXT":
            break
        for t in T:
            if W == t:
                count += 1
        T = [x.lower() for x in input().split()]
    except EOFError:
        break
    except IndexError:
        break
print(count)

Buggy python submission (verdict: Runtime Error):
count = 0
W = input().lower()
T = [0]
while True:
    try:
        if T[0] == "END_OF_TEXT":
            break
        for t in T:
            if W == t:
                count += 1
        T = [x.lower() for x in input().split()]
    except EOFError:
        break
print(count)

Fixed submission:
count = 0
W = input().lower()
T = [0]
while True:
    try:
        if T[0] == "END_OF_TEXT":
            break
        for t in T:
            if W == t:
                count += 1
        T = [x.lower() for x in input().split()]
    except EOFError:
        break
    except IndexError:
        break
print(count)

Buggy python submission (verdict: Time Limit Exceeded):
count = 0
W = input().lower()
T = [0]
while True:
    try:
        if T[0] == "END_OF_TEXT":
            break
        for t in T:
            if W == t:
                count += 1
        T = [x.lower() for x in input().split()]
    except EOFError:
        break
    except IndexError:
        pass
print(count)

Fixed submission:
count = 0
W = input().lower()
T = [0]
while True:
    try:
        if T[0] == "END_OF_TEXT":
            break
        for t in T:
            if W == t:
                count += 1
        T = [x.lower() for x in input().split()]
    except EOFError:
        break
    except IndexError:
        break
print(count)
Buggy python submission (verdict: Runtime Error):
while True:
	try:
		a,b,c,d,e,f = map(float, input().split())
		x = (c*e - b*f)/(a*e - b*d)
		y = (a*f - c*d)/(a*e - b*d)
		print("{0:.3f} {0:.3f}".format(x,y)
	except:
		exit()

Fixed submission:
while True:
	try:
		a,b,c,d,e,f = map(float, input().split())
		z = a*e - b*d
		if z != 0:
			y = (a*f - c*d) / z
			x = (c*e - b*f) / z
			print("{:.3f} {:.3f}".format(x+0,y+0))
	except:
		break

Buggy python submission (verdict: Runtime Error):
while True:
	try:
		a,b,c,d,e,f = map(float, input().split())
		x = (c*e - b*f)/(a*e - b*d)
		y = (a*f - c*d)/(a*e - b*d)
		print("{0:.3f} {0:.3f}".format(x,y)
	except:
		break

Fixed submission:
while True:
	try:
		a,b,c,d,e,f = map(float, input().split())
		z = a*e - b*d
		if z != 0:
			y = (a*f - c*d) / z
			x = (c*e - b*f) / z
			print("{:.3f} {:.3f}".format(x+0,y+0))
	except:
		break
Buggy python submission (verdict: Runtime Error):
n = int(input())
DEBT = 100000

for interest in range(n):
	DEBT = DEBT * 1.05
	ROUND = DEBT % 1000
	if ROUND != 0:
		DEBT = (DEBT // 1000 + 1) * 1000
print(int(DEBT)

Fixed submission:
n = int(input())
debt = 100000

for i in range(n):
	debt = debt * 1.05
	round = debt % 1000
	if round != 0:
		debt = (debt // 1000 + 1) * 1000

print(int(debt))

Buggy python submission (verdict: Runtime Error):
n = int(input())
debt = 100000

for i in range(n):
	debt = debt * 1.05
	round = debt % 1000
	if round != 0:
		debt = (debt // 1000 + 1) * 1000
print(int(debt)

Fixed submission:
n = int(input())
debt = 100000

for i in range(n):
	debt = debt * 1.05
	round = debt % 1000
	if round != 0:
		debt = (debt // 1000 + 1) * 1000

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

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

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

Fixed submission:
x = int(input())
print(x**3)
Buggy python submission (verdict: Runtime Error):
a = int(input("a :"))
b = int(input("a :"))
print(a/b a%b float(a / b)) 

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

Buggy python submission (verdict: Runtime Error):
a = int(input("a :"))
b = int(input("b :"))
print(int(a/b) int(a%b) float(a / b))

Fixed submission:
a,b = map(int,input().split(" "))
print(int(a/b),a%b,"{0:.8f}".format(a/b))
Buggy python submission (verdict: Runtime Error):
for n in range(1,10)
   for k in range(1,10)
      print n x k

Fixed submission:
for n in range(1, 10):
    for k in range(1, 10):
        print str(n) + "x" + str(k) + "=" + str(n * k)

Buggy python submission (verdict: Runtime Error):
for n in range(1, 10):
    for k in range(1, 10):
        print str(n) + "x" + str(k) + "=" + str(n * k)

Fixed submission:
for n in range(1, 10):
    for k in range(1, 10):
        print str(n) + "x" + str(k) + "=" + str(n * k)
Buggy python submission (verdict: Runtime Error):

s=input()

print(s*s*s)

Fixed submission:
import sys 

s = int(sys.stdin.readline())
 
print(s*s*s)
Buggy python submission (verdict: Runtime Error):
a=int(input().split(" "))
print(a[0]*a[1])

Fixed submission:
a=input().split(" ")
print(int(a[0])*int(a[1]),2*int(a[0])+2*int(a[1]))
Buggy python submission (verdict: Runtime Error):
import sys

for x,y in enumerate(map(int, sys.stdin))
	if x==0 and y==0 :
		sys.exist()
	elif x<y :
		print(x,y)
	elif x>y :
		print(y,x)

Fixed submission:
import sys

while(True):
    x,y = map(int, sys.stdin.readline().split())
    if x==0 and y==0 :
        break
    elif x<=y :
        print(x,y)
    elif x>y :
        print(y,x)

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

for x,y in enumerate(map(int, sys.stdin))
	if x==0 and y==0 :
		sys.exist()
	elif x<y :
		print(x,y)
	elif x>y :
		print(y,x)

Fixed submission:
import sys

while(True):
    x,y = map(int, sys.stdin.readline().split())
    if x==0 and y==0 :
        break
    elif x<=y :
        print(x,y)
    elif x>y :
        print(y,x)

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

while(True):
    x,y = map(int, sys.stdin.readline().split())
    if x==0 and y==0 :
        sys.exist()
    elif x<y :
        print(x,y)
    elif x>y :
        print(y,x)

Fixed submission:
import sys

while(True):
    x,y = map(int, sys.stdin.readline().split())
    if x==0 and y==0 :
        break
    elif x<=y :
        print(x,y)
    elif x>y :
        print(y,x)
Buggy python submission (verdict: Runtime Error):
# coding: utf-8

def registerDictionaryFromTheNumberOf(counts):
    dictionary = {}
    for i in range(counts):
        key, value = input().split(" ")
        dictionary[key] = value
    return dictionary
        
def readCharacterBeforeConversionAsManyAs(counts):
    readString = ""
    for i in range(counts):
        readString += input()
    return readString
    
def convertCharactersByThe(dictionary, target):
    converted = ""
    for index in range(len(list(target))):
        if target[index] in dictionary:
            converted += dictionary[target[index]]
        else:
            converted += target[index]
    return converted
        
while True:
    dictionaryCounts = int(input())
    if dictionaryCounts == 0:
        break
    dictionary = registerDictionaryFromTheNumberOf(dictionaryCounts)gg
    original = readCharacterBeforeConversionAsManyAs(int(input()))
    converted = convertCharactersByThe(dictionary, original)
    print(converted)

Fixed submission:
#!/home/minamo/.pyenv/versions/3.6.1/bin/python
# vim: ft=python
# coding: utf-8

def registerDictionaryFromTheNumberOf(counts):
    dictionary = {}
    for i in range(counts):
        key, value = input().split(" ")
        dictionary[key] = value
    return dictionary

def readCharacterBeforeConversionAsManyAs(counts):
    readString = ""
    for i in range(counts):
        readString += input().rstrip()
    return readString

def convertCharactersByThe(dictionary, target):
    converted = ""
    for index in range(len(list(target))):
        if target[index] in dictionary:
            converted += dictionary[target[index]]
        else:
            converted += target[index]
    return converted

while True:
    dictionaryCounts = int(input())
    if dictionaryCounts == 0:
        break
    dictionary = registerDictionaryFromTheNumberOf(dictionaryCounts)
    original = readCharacterBeforeConversionAsManyAs(int(input()))
    converted = convertCharactersByThe(dictionary, original)
    print(converted)
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
print("{0} {1}".format(r * r * math.pi, 2 * r * math.pi))

Fixed submission:
import math
r = float(input())
areaOfCircle = format(r * r * math.pi, '.6f')
circumference = format(2 * r * math.pi,'.6f')
print("{0} {1}".format(areaOfCircle, circumference))

Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
print("{0} {1}".format(format(r * r * math.pi, ".8g"), format(2 * r * math.pi,".8g")))

Fixed submission:
import math
r = float(input())
areaOfCircle = format(r * r * math.pi, '.6f')
circumference = format(2 * r * math.pi,'.6f')
print("{0} {1}".format(areaOfCircle, circumference))
Buggy python submission (verdict: Runtime Error):
import sys

while True:
    print(len(str(abs(sum(map(int, sys.stdin.readline().rstrip().split(' ')))))))

Fixed submission:
import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    print(len(str(abs(sum(map(int, line.rstrip().split(' ')))))))
Buggy python submission (verdict: Runtime Error):
print(x**3)

Fixed submission:
import sys

d = int(sys.stdin.readline().rstrip())
print(d**3)

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

Fixed submission:
import sys

d = int(sys.stdin.readline().rstrip())
print(d**3)

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

Fixed submission:
import sys

d = int(sys.stdin.readline().rstrip())
print(d**3)

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

Fixed submission:
import sys

d = int(sys.stdin.readline().rstrip())
print(d**3)
Buggy python submission (verdict: Runtime Error):
import sys

a,b = sys.stdin.readline().rstrip().strip(' ')
print(int(a)*int(b))

Fixed submission:
import sys

a,b = map(int, sys.stdin.readline().rstrip().split(' '))
print("{} {}".format(a*b,(a+b)*2))

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

a,b = map(int, sys.stdin.readline().rstrip().split(' '))
print("{} {}".format(a*b, (a+b)*2)

Fixed submission:
import sys

a,b = map(int, sys.stdin.readline().rstrip().split(' '))
print("{} {}".format(a*b,(a+b)*2))
Buggy python submission (verdict: Runtime Error):
V = int(input())
a = [input() for i in range(V)].sort(reverse=True)
for i in a[0:2]:
    print(i)

Fixed submission:
a = []
for i in range(10):
    a.append(input())
a = sorted(a, key=int, reverse=True)
for i in a[0:3]:
    print(i)

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

Fixed submission:
a = []
for i in range(10):
    a.append(input())
a = sorted(a, key=int, reverse=True)
for i in a[0:3]:
    print(i)
Buggy python submission (verdict: Runtime Error):
import math


def erastos(n):
    n += 1
    try:
        v = [0 if i % 2 == 0 or i % 3 == 0 or i % 5 == 0 else 1 for i in range(n)]
        v[0] = v[1] = 0
        v[2] = v[3] = v[5] = 1
    except IndexError:
        return [0, 0, 1, 1, 0, 1][:n]
    sqrt = math.sqrt(n)
    for serial in range(3, n, 2):
        if serial > sqrt:
            return v
        for s in range(serial ** 2, n, serial):
            v[s] = 0

if __name__ == '__main__':
    while True:
        n = int(input())
        v = erastos(n)
        primes = [i for i, b in enumerate(v) if b == True]
        print(len(primes))

Fixed submission:
import sys

primes = [1] * 500000
primes[0] = 0

for i in range(3, 1000, 2):
    if primes[i // 2]:
        primes[(i * i) // 2::i] = [0] * len(primes[(i * i) // 2::i])

for i in sys.stdin:
    n = int(i)
    if n < 4:
        print(n - 1)
    else:
        print(sum(primes[:(n + 1) // 2]) + 1)

Buggy python submission (verdict: Time Limit Exceeded):
import math, sys


def erastos(n):
    n += 1
    try:
        v = [0 if i % 2 == 0 or i % 3 == 0 or i % 5 == 0 else 1 for i in range(n)]
        v[0] = v[1] = 0
        v[2] = v[3] = v[5] = 1
    except IndexError:
        return [0, 0, 1, 1, 0, 1][:n]
    sqrt = math.sqrt(n)
    for serial in range(3, n, 2):
        if serial > sqrt:
            return v
        for s in range(serial ** 2, n, serial):
            v[s] = 0
if __name__ == '__main__':
    while True:
        try:
            n = int(input())
        except:
            break
        v = erastos(n)
        primes = [i for i, b in enumerate(v) if b == True]
        print(len(primes))

Fixed submission:
import sys

primes = [1] * 500000
primes[0] = 0

for i in range(3, 1000, 2):
    if primes[i // 2]:
        primes[(i * i) // 2::i] = [0] * len(primes[(i * i) // 2::i])

for i in sys.stdin:
    n = int(i)
    if n < 4:
        print(n - 1)
    else:
        print(sum(primes[:(n + 1) // 2]) + 1)

Buggy python submission (verdict: Time Limit Exceeded):
import math, sys

def erastos(n):
    n += 1
    try:
        v = [0 if i % 2 == 0 or i % 3 == 0 or i % 5 == 0 else 1 for i in range(n)]
        v[0] = v[1] = 0
        v[2] = v[3] = v[5] = 1
    except IndexError:
        return [0, 0, 1, 1, 0, 1][:n]
    sqrt = math.sqrt(n)
    for serial in range(3, n, 2):
        if serial > sqrt:
            return v
        for s in range(serial ** 2, n, serial):
            v[s] = 0
if __name__ == '__main__':
    while True:
        try:
            n = int(input())
            v = erastos(n)
            primes = [i for i, b in enumerate(v) if b == True]
            print(len(primes))
        except:
            break

Fixed submission:
import sys

primes = [1] * 500000
primes[0] = 0

for i in range(3, 1000, 2):
    if primes[i // 2]:
        primes[(i * i) // 2::i] = [0] * len(primes[(i * i) // 2::i])

for i in sys.stdin:
    n = int(i)
    if n < 4:
        print(n - 1)
    else:
        print(sum(primes[:(n + 1) // 2]) + 1)
Buggy python submission (verdict: Runtime Error):
import math, sys
for i in sys.stdin:
    print(math.ceil(float(input())**2/98+1))

Fixed submission:
while True:
    try:
        print(int(float(input())**2/98+2))
    except:
        break
Buggy python submission (verdict: Runtime Error):
import sys
v = iter(sys.stdin.readlines())
for i, j in v, v:
    a, b = list(i.sprit()), list(j.split())
    k = len([n for n in a for m in b if n == m])
    l = len(set(a) & set(b))
    print(l, k-l)

Fixed submission:
while True:
    try:
        a, b = list(map(int,input().split())), list(map(int, input().split()))
        print(sum([1 for i in range(4) if a[i] == b[i]]),
              sum([1 for i in range(4) for j in range(4) if i != j and a[i] == b[j]]))
    except:
        break
Buggy python submission (verdict: Runtime Error):
import sys
j = [int(a)**2 + int(b)**2 - int(c)**2 for line in sys.stdin for a,b,c in line.split()]
print(len([i for i in j if not i]))
print(len([i for i in j if i]))

Fixed submission:
import sys
t, h = 0, 0
for line in sys.stdin:
    try:
        a, b, c = line.split(",")
        if not int(a) ** 2 + int(b) ** 2 - int(c) ** 2:
            t += 1
        elif int(a) == int(b):
            h += 1
    except:
        break
print(t)
print(h)

Buggy python submission (verdict: Runtime Error):
import sys
j = [int(a)**2 + int(b)**2 - int(c)**2 for line in sys.stdin for a,b,c in line.split(",")]
print(len([i for i in j if not i]))
print(len([i for i in j if i]))

Fixed submission:
import sys
t, h = 0, 0
for line in sys.stdin:
    try:
        a, b, c = line.split(",")
        if not int(a) ** 2 + int(b) ** 2 - int(c) ** 2:
            t += 1
        elif int(a) == int(b):
            h += 1
    except:
        break
print(t)
print(h)
Buggy python submission (verdict: Runtime Error):
import sys
for line in sys.stdin():
    p = list(map(float, line.split(',')))
    v = [p[i] - p[(i + 2) % 8] for i in range(8)]
    ip = [v[j] * v[(j + 3) % 8] - v[j + 1] * v[(j + 2) % 8] > 0 for j in range(0,8,2)]
    if sum(ip) == 0 or sum(ip) == 4:
        print('YES')
    else:
        print('NO')

Fixed submission:
import sys
for line in sys.stdin:
    try:
        p = list(map(float, line.split(',')))
    except:
        break
    v = [p[i] - p[(i + 2) % 8] for i in range(8)]
    ip = [v[j] * v[(j + 3) % 8] - v[j + 1] * v[(j + 2) % 8] > 0 for j in range(0,8,2)]
    if sum(ip) == 0 or sum(ip) == 4:
        print('YES')
    else:
        print('NO')

Buggy python submission (verdict: Runtime Error):
import sys
for line in sys.stdin():
    p = list(map(float, line.split(',')))
    v = [p[i] - p[(i + 2) % 8] for i in range(8)]
    ip = [v[j] * v[(j + 3) % 8] - v[j + 1] * v[(j + 2) % 8] > 0 for j in range(0,8,2)]
    if sum(ip) == 0 or sum(ip) == 4:
        print('YES')
    else:
        print('NO')

Fixed submission:
import sys
for line in sys.stdin:
    try:
        p = list(map(float, line.split(',')))
    except:
        break
    v = [p[i] - p[(i + 2) % 8] for i in range(8)]
    ip = [v[j] * v[(j + 3) % 8] - v[j + 1] * v[(j + 2) % 8] > 0 for j in range(0,8,2)]
    if sum(ip) == 0 or sum(ip) == 4:
        print('YES')
    else:
        print('NO')
Buggy python submission (verdict: Runtime Error):
from fractions import gcd
print(gcd(*set(map(int, input().split(" ")))))

Fixed submission:
from fractions import gcd
print(gcd(*list(map(int, input().split(" ")))))
Buggy python submission (verdict: Runtime Error):
n = int(input())
l = [int(input()) for i in range(n)][::-1]
maximum = l[0] - min(l[1:])
if maximum > 0:
    x = [i for i in l if l[0] <= i]
for j in range(len(x)-1):
    if maximum < l[j] - min(l[j+1:]):
        maximum = l[j] - min(l[j+1:])
input(maximum)

Fixed submission:
n = int(input())
r = [int(input()) for i in range(n)]
start = r[0]
score = r[1] - r[0]
for i in range(1,n):
    if r[i] - start > score: score = r[i] - start
    if r[i] < start: start = r[i]
print(score)

Buggy python submission (verdict: Runtime Error):
n = int(input())
l = [int(input()) for i in range(n)][::-1]
maximum = l[0] - min(l[1:])
x = l
if maximum > 0:
    x = [i for i in l if l[0] <= i]
for j in range(len(x)-1):
    if maximum < l[j] - min(l[j+1:]):
        maximum = l[j] - min(l[j+1:])
input(maximum)

Fixed submission:
n = int(input())
r = [int(input()) for i in range(n)]
start = r[0]
score = r[1] - r[0]
for i in range(1,n):
    if r[i] - start > score: score = r[i] - start
    if r[i] < start: start = r[i]
print(score)

Buggy python submission (verdict: Runtime Error):
n = int(input())
l = [int(input()) for i in range(n)]
l = l[::-1]
maximum = l[0] - min(l[1:])
x = l
if maximum > 0:
    x = [i for i in l if l[0] <= i]
for j in range(len(x)-1):
    if maximum < l[j] - min(l[j+1:]):
        maximum = l[j] - min(l[j+1:])
input(maximum)

Fixed submission:
n = int(input())
r = [int(input()) for i in range(n)]
start = r[0]
score = r[1] - r[0]
for i in range(1,n):
    if r[i] - start > score: score = r[i] - start
    if r[i] < start: start = r[i]
print(score)
Buggy python submission (verdict: Time Limit Exceeded):
import sys
x = input()
y = input().split()
r = sorted(y)
c = 0
while y != r:
    for i, j in enumerate(y[:-1]):
        if y[i] > y[i+1]:
            y[i], y[i+1] = y[i+1], y[i]
            c += 1
        else:
            break
print(" ".join(y))
print(c)

Fixed submission:
x = int(input())
y = input()
y = list(map(int, y.split()))
r = sorted(y)
c = 0
while y != r:
    for i, j in enumerate(y[:-1]):
        if y[i] > y[i+1]:
            y[i], y[i+1] = y[i+1], y[i]
            c += 1
print(*y)
print(c)
Buggy python submission (verdict: Runtime Error):
judge = True
while judge:
    a,b = map(int, input().split(" "))
    if a == None:
        judge = False
    else:
        c = a+b
        print(len(str(c)))

Fixed submission:
import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        tokens = line.strip().split()
        a, b = int(tokens[0]), int(tokens[1])
        c = a+b
        print(len(str(c)))

Buggy python submission (verdict: Runtime Error):
judge = True
while judge:
    a,b = map(int, input().split(" "))
    if a != None:
        c = a+b
        print(len(str(c)))
    else:
        judge = False

Fixed submission:
import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        tokens = line.strip().split()
        a, b = int(tokens[0]), int(tokens[1])
        c = a+b
        print(len(str(c)))
Buggy python submission (verdict: Time Limit Exceeded):
def set_values():
	values = []
	for i in range(int(input())):
		values.append(int(input()))
	return values

def check_all(values):
	max_value = min(values) - max(values)
	for i in range(len(values)-1):
		count = i + 1
		max_value = get_max_value(i, len(values), count, max_value)
	return max_value

def get_max_value(now_index, length, count, max_value):

	while count < length:
		if max_value < (values[count] - values[now_index]):
			max_value = (values[count] - values[now_index])
		count += 1
	return max_value

values = set_values()
max_value = check_all(values)
print(max_value)


Fixed submission:
def set_values():
	values = []
	for i in range(num):
		values.append(int(input()))
	return values

num = int(input())
values = set_values()
max_value = values[1] - values[0]
min_value = values[0]

for i in range(1, num):
	max_value = max(max_value, (values[i] - min_value))
	min_value = min(min_value, values[i])

print(max_value)

Buggy python submission (verdict: Runtime Error):
alues = set_values()
max_value = min(values) - max(values)
for i in range(1, int(input())):
	for j in range(0, i-1):
		print(i, j, len(values))
		if max_value < (values[i] - values[j]):
			max_value = (values[i] - values[j])
print(max_value)


Fixed submission:
def set_values():
	values = []
	for i in range(num):
		values.append(int(input()))
	return values

num = int(input())
values = set_values()
max_value = values[1] - values[0]
min_value = values[0]

for i in range(1, num):
	max_value = max(max_value, (values[i] - min_value))
	min_value = min(min_value, values[i])

print(max_value)

Buggy python submission (verdict: Runtime Error):
values = set_values()
max_value = min(values) - max(values)
for i in range(1, int(input())):
	for j in range(0, i-1):

		print(i, j, len(values))
		if max_value < (values[i] - values[j]):
			max_value = (values[i] - values[j])

print(max_value)


Fixed submission:
def set_values():
	values = []
	for i in range(num):
		values.append(int(input()))
	return values

num = int(input())
values = set_values()
max_value = values[1] - values[0]
min_value = values[0]

for i in range(1, num):
	max_value = max(max_value, (values[i] - min_value))
	min_value = min(min_value, values[i])

print(max_value)
Buggy python submission (verdict: Runtime Error):
num = int(input())
area = num*num*3.14
circle = 2*3.14*num
print(area,circle)

Fixed submission:
num = float(input())
area = num*num*3.141592653589
circle = 3.141592653589*(num*2)
print(area,circle)
Buggy python submission (verdict: Runtime Error):
for i in range(1, 10):
    for j in range(1, 10):
        print('{}x{}={}').format(i, j, i*j))

Fixed submission:
for i in range(1, 10):
    for j in range(1, 10):
        print('{}x{}={}'.format(i, j, i*j))
Buggy python submission (verdict: Runtime Error):
a, b = input().split()
op = ['==', '>', '<']
result = int(a) - int(b)
if result != 0:
    result = result / abs(result)

print(a, op[result], b)

Fixed submission:
a, b = input().split()
op = ['==', '>', '<']
result = int(a) - int(b)
if result != 0:
    result = result // abs(result)
 
print('a ' + op[result] + ' b')