Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
r,c = (int(x) for x in input().split())

table = []
i = 0

while i < r
  table[0] = list(int(x) for x in input().split())
  i += 1

# output R
i,j = 0,0
while i < r
  sum = 0
  while j < c
    if j != 0:
      print(' ')
    print(' ' + teble[i][j], end='')
    sum += table[i][j]
    j += 1
    if j == c:
      print(' ' + sum)

i,j = 0
while j < c:
  while i < r:
  i += 1


Fixed submission:
r,c = (int(x) for x in input().split())

table = []
i = 0

while i < r:
  table.append(list(int(x) for x in input().split()))
  i += 1

i,j = 0,0
for i in table:
  sum = 0
  for idx,j in enumerate(i):
    if idx != 0:
      print(' ', end='')
    print(j, end='')   
    sum += j
  print(' ' + str(sum))

j,ttl = 0,0
while j < c:
  i = 0
  sum = 0
  while i < r:
    sum += table[i][j]
    i += 1
  print (sum, end=' ')
  ttl += sum
  j += 1
print(ttl)

Buggy python submission (verdict: Runtime Error):
r,c = (int(x) for x in input().split())

table = []
i = 0

while i < r
  table[0] = list(int(x) for x in input().split())
  i += 1

# output R
i,j = 0,0
while i < r
  sum = 0
  while j < c
    if j != 0:
      print(' ')
    print(' ' + teble[i][j], end='')
    sum += table[i][j]
    j += 1
    if j == c:
      print(' ' + sum)

i,j = 0
while j < c:
  while i < r:
  i += 1


Fixed submission:
r,c = (int(x) for x in input().split())

table = []
i = 0

while i < r:
  table.append(list(int(x) for x in input().split()))
  i += 1

i,j = 0,0
for i in table:
  sum = 0
  for idx,j in enumerate(i):
    if idx != 0:
      print(' ', end='')
    print(j, end='')   
    sum += j
  print(' ' + str(sum))

j,ttl = 0,0
while j < c:
  i = 0
  sum = 0
  while i < r:
    sum += table[i][j]
    i += 1
  print (sum, end=' ')
  ttl += sum
  j += 1
print(ttl)
Buggy python submission (verdict: Runtime Error):
https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/7/ITP1_7_D


Fixed submission:
string=input()
print(string.swapcase())

Buggy python submission (verdict: Runtime Error):
string=input()
print(string.swapcase()


Fixed submission:
string=input()
print(string.swapcase())
Buggy python submission (verdict: Runtime Error):
table = [0] * 26
string = []
while True:
  try:
    string += list(input())
  except EOFError:
    break

for s in string:
  n = ord(s.lower()) - 97
  if n >= 0 and n <= 25:
    table[n] += 1

for idx, s in enumerate(table):
  print(chr(idx + 97) + " : " + str(s)


Fixed submission:
table = [0] * 26
string = []
while True:
  try:
    string += list(input())
  except EOFError:
    break

for s in string:
  n = ord(s.lower()) - 97
  if n >= 0 and n <= 25:
    table[n] += 1

for idx, s in enumerate(table):
  print(chr(idx + 97) + " : " + str(s))
Buggy python submission (verdict: Runtime Error):
while True:
  cards = str(input())
  if cards == '-':
    break
  
  n = int(input())
  for i in range(n):
    p = str(input())
    cards = cards[p:] + cards[:p]
  print(cards)


Fixed submission:
while True:
  cards = str(input())
  if cards == '-':
    break
  
  n = int(input())
  for i in range(n):
    p = int(input())
    cards = cards[p:] + cards[:p]
  print(cards)
Buggy python submission (verdict: Runtime Error):
n,q = map(int,input().split())
queue = []
for i in range(n):
	name,time = input().split()
	queue.append((name, int(time)))

t = 0
i = 0
while queue:
	p = queue[i % len(queue)]
	t += min(q, p[1])
	if p[1] > q:
		p[1] -= q
		i += 1
	else:
		print(p[0], t)
		queue.pop(i)


Fixed submission:
import sys
from collections import deque

n,q = map(int,input().split())
f = lambda n,t: (n,int(t))
queue = deque(f(*l.split()) for l in sys.stdin)

t = 0
while queue:
	name,time = queue.popleft()
	t += min(q, time)
	if time > q:
		queue.append((name, time-q))
	else:
		print(name,t)

Buggy python submission (verdict: Runtime Error):
n,q = map(int,input().split())
queue = []
for i in range(n):
	name,time = input().split()
	queue.append((name, int(time)))

t = 0
i = 0
while queue:
	i %= len(queue)
	p = queue[i]
	t += min(q, p[1])
	if p[1] > q:
		p[1] -= q
		i += 1
	else:
		print(p[0], t)
		queue.pop(i)


Fixed submission:
import sys
from collections import deque

n,q = map(int,input().split())
f = lambda n,t: (n,int(t))
queue = deque(f(*l.split()) for l in sys.stdin)

t = 0
while queue:
	name,time = queue.popleft()
	t += min(q, time)
	if time > q:
		queue.append((name, time-q))
	else:
		print(name,t)
Buggy python submission (verdict: Runtime Error):
p=[1]*10001

i=2
while i*i<10000:
    if p[i]:
        j=i+i
        while j<10000:
            p[j]=0
            j+=i
    i+=1
count=0
for i in range(int(input())):
    if p[int(input())]==1:
        count+=1
        
print(count)


Fixed submission:
def is_prime(n):
    i=2
    while i*i<=n:
        if n%i==0:
            return False
        i+=1
    return True
    
s=[]
for _ in range(int(input())):
    s.append(is_prime(int(input())))
print(sum(s))
Buggy python submission (verdict: Runtime Error):
n=int(input())
m=int(input())

for i in range(n-1):
    x=int(input())
    d=max-m,d)
    m=min(m,x)
print(d)


Fixed submission:
n=int(input())
m=int(input())
d=-10**9

for i in range(n-1):
    x=int(input())
    d=max(x-m,d)
    m=min(m,x)
print(d)

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

for i in range(n-1):
    x=int(input())
    d=max(x-m,d)
    m=min(m,x)
print(d)


Fixed submission:
n=int(input())
m=int(input())
d=-10**9

for i in range(n-1):
    x=int(input())
    d=max(x-m,d)
    m=min(m,x)
print(d)
Buggy python submission (verdict: Runtime Error):
n = int(input())
i = 1
for i range in (1,n):
    if i % 10 == 3:
        print('{0}'.format(i))
    elif i % 3 == 0:
        if i % 10 == 3:
            continue
        print('{0}'.format(i))
    i = i + 1
    


Fixed submission:
n = int(input())
for i in range(1, n+1):
    if i%3 == 0 :
        print(' {}'.format(i),end='')

    elif '3' in str(i):
        print(' {}'.format(i),end='')
print()

Buggy python submission (verdict: Runtime Error):
n = int(input())
a = 1
for i range in (1,n):
    if i % 10 == 3:
        print('{0}'.format(i))
    elif i % 3 == 0:
        if i % 10 == 3:
            continue
        print('{0}'.format(i))
    a = i
    a = a + 1
    


Fixed submission:
n = int(input())
for i in range(1, n+1):
    if i%3 == 0 :
        print(' {}'.format(i),end='')

    elif '3' in str(i):
        print(' {}'.format(i),end='')
print()

Buggy python submission (verdict: Runtime Error):
n = int(input())
a = 1
for i range in (1,n+1):
    if i % 10 == 3:
        print('{0}'.format(i))
    elif i % 3 == 0:
        if i % 10 == 3:
            continue
        print('{0}'.format(i))
    a = i
    a = a + 1
    


Fixed submission:
n = int(input())
for i in range(1, n+1):
    if i%3 == 0 :
        print(' {}'.format(i),end='')

    elif '3' in str(i):
        print(' {}'.format(i),end='')
print()

Buggy python submission (verdict: Runtime Error):
n = int(input())
a = 1
for i range in (n):
    if i % 10 == 3:
        print('{0}'.format(i))
    elif i % 3 == 0:
        if i % 10 == 3:
            continue
        print('{0}'.format(i))
    a = i
    a = a + 1
    


Fixed submission:
n = int(input())
for i in range(1, n+1):
    if i%3 == 0 :
        print(' {}'.format(i),end='')

    elif '3' in str(i):
        print(' {}'.format(i),end='')
print()

Buggy python submission (verdict: Runtime Error):
n = int(input())
a = 1
for i range in (n):
    if i % 10 == 3:
        print('{0}'.format(i))
    elif i % 3 == 0:
        if i % 10 == 3:
            continue
        print('{0}'.format(i))
    


Fixed submission:
n = int(input())
for i in range(1, n+1):
    if i%3 == 0 :
        print(' {}'.format(i),end='')

    elif '3' in str(i):
        print(' {}'.format(i),end='')
print()

Buggy python submission (verdict: Runtime Error):
n = int(input())
a = 1
for i range in (1,n):
    if i % 10 == 3:
        print('{0}'.format(i))
    elif i % 3 == 0:
        if i % 10 == 3:
            continue
        print('{0}'.format(i))
    


Fixed submission:
n = int(input())
for i in range(1, n+1):
    if i%3 == 0 :
        print(' {}'.format(i),end='')

    elif '3' in str(i):
        print(' {}'.format(i),end='')
print()
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = input().rstrip.split()
for i in (reverse(s)):
    print(s)


Fixed submission:
n = int(input())
s = input().split()
s.reverse()
print(' '.join(s))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = input().split()
for i in (reverse(s)):
    print(s)


Fixed submission:
n = int(input())
s = input().split()
s.reverse()
print(' '.join(s))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = input().rstrip.split()
for i in (reversed(s)):
    print(s)


Fixed submission:
n = int(input())
s = input().split()
s.reverse()
print(' '.join(s))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = input()..split()
for i in (reversed(s)):
    print(i)


Fixed submission:
n = int(input())
s = input().split()
s.reverse()
print(' '.join(s))
Buggy python submission (verdict: Runtime Error):
print(x**3)


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

Buggy python submission (verdict: Runtime Error):
x=2
print(x**3\n)


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

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


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

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


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

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


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

Buggy python submission (verdict: Runtime Error):
x=input()
result = pow(x,3)
print(result)


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

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


Fixed submission:
x=int(input())
result = x**3
print(result)
Buggy python submission (verdict: Runtime Error):
a,b=input(),split(" ")

print(a+""+b)


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

print(str(S) + " " + str(C))

Buggy python submission (verdict: Runtime Error):
a,b=input(),split(' ')

print(a+' '+b)


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

print(str(S) + " " + str(C))

Buggy python submission (verdict: Runtime Error):
a,b=input(),split()

print(a+' '+b)


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

print(str(S) + " " + str(C))

Buggy python submission (verdict: Runtime Error):
a,b=input(),split()

print(a)


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

print(str(S) + " " + str(C))

Buggy python submission (verdict: Runtime Error):
a,b = input().split()
S = a*b
C = 2 * (a+b)

print(S + " " + C)


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

print(str(S) + " " + str(C))

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

print(S + " " + C)


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

print(str(S) + " " + str(C))

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

print(S + " " + C)


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

print(str(S) + " " + str(C))
Buggy python submission (verdict: Runtime Error):
S = int(input())
h = int(S/3600)
m = S- 9nt(h*3600)/60)
sec = S- h*3600-m*60;
print(str(h)+":"+str(m)+":"+str(sec))


Fixed submission:
S = int(input())
h = int(S/3600)
m = int((S- h*3600)/60)
sec = S- h*3600-m*60;
print(str(h)+":"+str(m)+":"+str(sec))

Buggy python submission (verdict: Runtime Error):
S = int(input())
h = int(S/3600)
m = S- int(h*3600)/60)
sec = S- h*3600-m*60;
print(str(h)+":"+str(m)+":"+str(sec))


Fixed submission:
S = int(input())
h = int(S/3600)
m = int((S- h*3600)/60)
sec = S- h*3600-m*60;
print(str(h)+":"+str(m)+":"+str(sec))
Buggy python submission (verdict: Runtime Error):
a,b = input().split()

if a>b:
    print("a > b")
else if a==b:
    print("a == b")
else:
    print("a < b")


Fixed submission:
a,b = input().split()
a = int(a)
b = int(b)
if a>b:
    print("a > b")
elif a==b:
    print("a == b")
else:
    print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b = int(input().split())

if a>b:
    print("a > b")
elif a==b:
    print("a == b")
else:
    print("a < b")


Fixed submission:
a,b = input().split()
a = int(a)
b = int(b)
if a>b:
    print("a > b")
elif a==b:
    print("a == b")
else:
    print("a < b")
Buggy python submission (verdict: Runtime Error):
a,b,c= int(input().split())


Fixed submission:
a,b,c = input().split()

a = int(a)
b = int(b)
c = int(c)

if a < b < c:
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
a,b,c = input().split()

#a = int(a)
b = int(b)
c = int(c)

if a < b < c:
    print("yes")
else:
    print("no")


Fixed submission:
a,b,c = input().split()

a = int(a)
b = int(b)
c = int(c)

if a < b < c:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
list=map(int,input().split)
sorted = sort(list)
print(' '.join(map(str, sorted)))


Fixed submission:
InData=input().split()
InDataM = [int(i) for i in InData]
result = sorted(InDataM)
print(' '.join(map(str, result)))

Buggy python submission (verdict: Runtime Error):
InData=input().split
Indata = map(int, InData)
sorted = sort(InData)
print(' '.join(map(str, sorted)))


Fixed submission:
InData=input().split()
InDataM = [int(i) for i in InData]
result = sorted(InDataM)
print(' '.join(map(str, result)))

Buggy python submission (verdict: Runtime Error):
InData=input().split
Indata = map(int, InData)
sorted = sorted(InData)
print(' '.join(map(str, sorted)))


Fixed submission:
InData=input().split()
InDataM = [int(i) for i in InData]
result = sorted(InDataM)
print(' '.join(map(str, result)))
Buggy python submission (verdict: Runtime Error):
Indata = [int(i) for i in input().split()]
W,H,x,y,r = int(i) for i in Indata
x_right = x+r
x_left = x-r
y_on = y+r
y_under = y-r

if x_right>W || x_left<0 || y_on>H || y_under<0:
    print("No")
else:
    print("Yes")


Fixed submission:
Indata = [int(i) for i in input().split()]
W,H,x,y,r = [int(i) for i in Indata]
x_right = x+r
x_left = x-r
y_on = y+r
y_under = y-r

if x_right>W or x_left<0 or y_on>H or y_under<0:
    print("No")
else:
    print("Yes")

Buggy python submission (verdict: Runtime Error):
Indata = [int(i) for i in input().split()]
W,H,x,y,r = [int(i) for i in Indata]
x_right = x+r
x_left = x-r
y_on = y+r
y_under = y-r

if x_right>W || x_left<0 || y_on>H || y_under<0:
    print("No")
else:
    print("Yes")


Fixed submission:
Indata = [int(i) for i in input().split()]
W,H,x,y,r = [int(i) for i in Indata]
x_right = x+r
x_left = x-r
y_on = y+r
y_under = y-r

if x_right>W or x_left<0 or y_on>H or y_under<0:
    print("No")
else:
    print("Yes")
Buggy python submission (verdict: Runtime Error):
flg = 1
i=0
while flg:
    i=i+1
    Indata = input()
    print("Case" +str(i) + ": " + str(Indata))
    if Indata == 0:
        flg=0
    



Fixed submission:
i=0
while True:
    Indata = int(input())
    if Indata == 0:
        break
    else:
        i=i+1
        print("Case " +str(i) + ": " + str(Indata))

Buggy python submission (verdict: Runtime Error):
flg = 1
i=0
while flg:
    i=i+1
    Indata = input()
    print("Case" +str(i) + ": " + Indata)
    if Indata == 0:
        flg=0
    



Fixed submission:
i=0
while True:
    Indata = int(input())
    if Indata == 0:
        break
    else:
        i=i+1
        print("Case " +str(i) + ": " + str(Indata))

Buggy python submission (verdict: Runtime Error):
i=0
while True:
    i=i+1
    Indata = input()
    print("Case" +str(i) + ": " + Indata)
    if Indata == 0:
        break
    



Fixed submission:
i=0
while True:
    Indata = int(input())
    if Indata == 0:
        break
    else:
        i=i+1
        print("Case " +str(i) + ": " + str(Indata))

Buggy python submission (verdict: Runtime Error):
i=0
while True:
    i=i+1
    Indata = int(input())
    print("Case" +str(i) + ": " + str(Indata)
    if Indata == 0:
        break
    



Fixed submission:
i=0
while True:
    Indata = int(input())
    if Indata == 0:
        break
    else:
        i=i+1
        print("Case " +str(i) + ": " + str(Indata))

Buggy python submission (verdict: Runtime Error):
i=0
while True:
    i=i+1
    Indata = int(input())
    if Indata == 0:
        break
    else:
        print("Case" +str(i) + ": " + str(Indata)
    
    
    



Fixed submission:
i=0
while True:
    Indata = int(input())
    if Indata == 0:
        break
    else:
        i=i+1
        print("Case " +str(i) + ": " + str(Indata))

Buggy python submission (verdict: Runtime Error):
i=0
while True:
    Indata = int(input())
    if Indata == 0:
        break
    else:
        i=i+1
        print("Case" +str(i) + ": " + str(Indata)


Fixed submission:
i=0
while True:
    Indata = int(input())
    if Indata == 0:
        break
    else:
        i=i+1
        print("Case " +str(i) + ": " + str(Indata))
Buggy python submission (verdict: Runtime Error):
a,b,c = [for int(i) in input().split()]
i=0
for i in list(range(a,b+1,1):
    if c % i == 0:
        i = i+1
    else:
        
print(i)


Fixed submission:
a,b,c = [int(i) for i in input().split()]
i=0
for num in range(a,b+1,1):
    if c % num == 0:
        i = i+1
    else:
        pass
print(i)

Buggy python submission (verdict: Runtime Error):
a,b,c = [int(i) for i in input().split()]
i=0
for i in list(range(a,b+1,1):
    if c % i == 0:
        i = i+1
    else:
        
print(i)


Fixed submission:
a,b,c = [int(i) for i in input().split()]
i=0
for num in range(a,b+1,1):
    if c % num == 0:
        i = i+1
    else:
        pass
print(i)

Buggy python submission (verdict: Runtime Error):
a,b,c = [int(i) for i in input().split()]
i=0
for i in list(range(a,b+1,1)):
    if c % i == 0:
        i = i+1
    else:
        
print(i)


Fixed submission:
a,b,c = [int(i) for i in input().split()]
i=0
for num in range(a,b+1,1):
    if c % num == 0:
        i = i+1
    else:
        pass
print(i)

Buggy python submission (verdict: Runtime Error):
a,b,c = [int(i) for i in input().split()]
i=0
for i in range(a,b+1,1):
    if c % i == 0:
        i = i+1
    else:
        
print(i)


Fixed submission:
a,b,c = [int(i) for i in input().split()]
i=0
for num in range(a,b+1,1):
    if c % num == 0:
        i = i+1
    else:
        pass
print(i)
Buggy python submission (verdict: Runtime Error):
a,b = [double(i) for i in input().split()]
d = int(a/b)
r = int(a) % int(b)
f = a/b

print(str(d) + " " + str(r) + " " + str(f))


Fixed submission:
a,b = [float(i) for i in input().split()]
d = int(a/b)
r = int(a) % int(b)
f = a/b
f = "{:.6f}".format(f)

print(d,r,f)

Buggy python submission (verdict: Runtime Error):
a,b = [float(i) for i in input().split()]
d = int(a/b)
r = int(a) % int(b)
f = a/b
f = round(decimal.Decimal(f), 10)
print(str(d) + " " + str(r) + " " + str(f))


Fixed submission:
a,b = [float(i) for i in input().split()]
d = int(a/b)
r = int(a) % int(b)
f = a/b
f = "{:.6f}".format(f)

print(d,r,f)

Buggy python submission (verdict: Runtime Error):
a,b = [float(i) for i in input().split()]
d = int(a/b)
r = int(a) % int(b)
f = a/b
f2 = round(decimal.Decimal(f), 10)
print(str(d) + " " + str(r) + " " + str(f2))


Fixed submission:
a,b = [float(i) for i in input().split()]
d = int(a/b)
r = int(a) % int(b)
f = a/b
f = "{:.6f}".format(f)

print(d,r,f)
Buggy python submission (verdict: Runtime Error):
a,op,b = [float(i) for i in input().split()]
if op == "?":
    break
else:
    if op == "+":
        ans = a + b
    elif op == "-":
        ans = a-b
    elif op == "*":
        ans = a * b
    else:
        rem = a%b
        if rem == 0:
            ans = a/b
        else:
            ans = int(a/b)
print(ans)


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

Buggy python submission (verdict: Runtime Error):
while True
    a,op,b = input().split()
    a = float(a)
    b = float(b)
    if op == "?":
        break
    else:
        if op == "+":
            ans = a + b
        elif op == "-":
            ans = a-b
        elif op == "*":
            ans = a * b
        else:
            rem = a%b
            if rem == 0:
                ans = a/b
            else:
                ans = int(a/b)
    print(ans)  


Fixed submission:
while True:
    a,op,b = input().split()
    a = int(a)
    b = int(b)
    if op == "?":
        break
    else:
        if op == "+":
            ans = a + b
        elif op == "-":
            ans = a-b
        elif op == "*":
            ans = a * b
        elif op == "/":
            rem = a%b
            if rem == 0:
                ans = int(a/b)
            else:
                ans = int(a/b)
    print(ans)
Buggy python submission (verdict: Runtime Error):
Num = int(input())
Indata = [0] * num;
Indata = [int(i) for i in input().split()]
MinVal = min(Indata)
MaxVal = max(Indata)
SumVal = sum(Indata)

print(Minval, MaxVal, SumVal)


Fixed submission:
num = int(input())
inData = [0] * num
inData = [int(i) for i in input().split()]
minVal = min(inData)
maxVal = max(inData)
sumVal = sum(inData)

print(minVal, maxVal, sumVal)

Buggy python submission (verdict: Runtime Error):
Num = int(input())
Indata = [0] * num;
Indata = [int(i) for i in input().split()]
MinVal = min(Indata)
MaxVal = max(Indata)
SumVal = sum(Indata)

print(MinVal, MaxVal, SumVal)


Fixed submission:
num = int(input())
inData = [0] * num
inData = [int(i) for i in input().split()]
minVal = min(inData)
maxVal = max(inData)
sumVal = sum(inData)

print(minVal, maxVal, sumVal)

Buggy python submission (verdict: Runtime Error):
Num = int(input())
Indata = [0] * num
Indata = [int(i) for i in input().split()]
MinVal = min(Indata)
MaxVal = max(Indata)
SumVal = sum(Indata)

print(MinVal, MaxVal, SumVal)


Fixed submission:
num = int(input())
inData = [0] * num
inData = [int(i) for i in input().split()]
minVal = min(inData)
maxVal = max(inData)
sumVal = sum(inData)

print(minVal, maxVal, sumVal)
Buggy python submission (verdict: Runtime Error):
while True:
    H,W = [int(i) for i in input().split()]
    if H == 0 and W == 0:
        break
    else:
        for j in list(range(1, H+1, 1)):
            for i in list(range(1, W+1, 1)):
                if i == W:
                    print("#")
                else;
                    print("#", end = "")
        


Fixed submission:
while True:
    H,W = [int(i) for i in input().split()]
    if H == 0 and W == 0:
        break
    else:
        for j in list(range(1, H+1, 1)):
            for i in list(range(1, W+1, 1)):
                if i == W:
                    print("#")
                else:
                    print("#", end = "")
        print("")