Buggy python submission (verdict: Runtime Error):
n = input()
max = 0
min = 0
sum = 0
for i in range(1,n+1):
    a[i]=[int(x) for x in input().split()]
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]
    sum += a[i]

print(min,max,sum)


Fixed submission:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Buggy python submission (verdict: Runtime Error):
n = input()
max = 0
min = 0
sum = 0
for i in range(1,n+1):
    a[i]=[int(x) for x in input().split()]
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]
    sum += a[i]

print(min,max,sum)


Fixed submission:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Buggy python submission (verdict: Runtime Error):
n = input()
max = 0
min = 0
sum = 0
for i in range(1,n+1):
    a=[int(x) for x in input().split()]
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]
    sum += a[i]

print(min,max,sum)


Fixed submission:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Buggy python submission (verdict: Runtime Error):
n = input()
max = 0
min = 0
sum = 0
a=[int(x) for x in input().split()]
for i in range(1,n+1):
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]
    sum += a[i]

print(min,max,sum)



Fixed submission:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Buggy python submission (verdict: Runtime Error):
n = input()
max = 0
min = 0
sum = 0
a=[int(x) for x in input().split()]
for i in range(n):
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]
    sum += a[i]

print(min,max,sum)


Fixed submission:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Buggy python submission (verdict: Runtime Error):
n = int(input())
max = -100000000
min = 1000000000
sum = 0
a= input().split()
for i in range(0,n):
    sum += a[i]
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]

print(str(min),str(max),str(sum))


Fixed submission:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Buggy python submission (verdict: Runtime Error):
n = int(input())
max = -100000000
min = 1000000000
sum = 0
a= input().split()
for i in range(0,n):
    sum += a[i]
    if int(a[i]) >= max: max = a[i]
    if int(a[i]) <= min: min = a[i]

print(min,max,sum)


Fixed submission:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Buggy python submission (verdict: Runtime Error):
n = int(input())
a = input().split()
max = -1000000
min = 1000000
sum = 0
for i in range(0,n):
    sum = sum + int(a[i])
    if int(a[i]) > max:
        max = int(a[i])
    if int(a[i]) < min:
        min = int(a[i])
 
print(str(min) + " " + str(max) + " " + str(sum))


Fixed submission:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Buggy python submission (verdict: Runtime Error):
n = int(input())
max = -10000000
min = 100000000
sum = 0
a = input().split()
for i in range(0,n):
 sum += a[i]
 if int(a[i]) >= max: max = a[i]
 if int(a[i]) <= min: min = a[i]

print(min,max,sum)


Fixed submission:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))