Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int, input().split(" "))
	
if a>c :
	k=c
	c=a
	a=k
if c<b :
	k=b
	b=c
	c=k
if b<a
	k=b
	b=a
	a=k
a,b,c=map(str,(a,b,c))
print(a+' '+b+' '+c)

Fixed submission:
a,b,c=map(int, input().split(" "))
	
if a>c :
	k=c
	c=a
	a=k
if c<b :
	k=b
	b=c
	c=k
if b<a :
	k=b
	b=a
	a=k
a,b,c=map(str,(a,b,c))
print(a+' '+b+' '+c)
Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
a,b=map(int, input().split())
print('%d %d %f' %(a/b, a%b, a/b))

Fixed submission:
a,b=map(int, input().split())
print('%d %d %f' %(a/b, a%b, a/b))
Buggy python submission (verdict: Runtime Error):
while True:
	a,b,c=map(str, input().split())
	if b=='?':
		break
	a=int(a)
	c=int(c)
	if b=='+':
		print(a+c)
	elif b=='*':
		print(a*c)
	elif b=='/':
		print(int(a/c))
	else: 
		print(a-c)

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

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

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

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

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

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

Fixed submission:
while True:
	a,b,c=map(str, input().split())
	if b=='?':
		break
	a=int(a)
	c=int(c)
	if b=='+':
		print(a+c)
	elif b=='*':
		print(a*c)
	elif b=='/':
		print(int(a/c))
	elif b=='-':
		print(a-c)
Buggy python submission (verdict: Runtime Error):
n=input()
data=list(int, input().split())
print('%d %d %d' %(min(data), max(data), sum(data) )

Fixed submission:
n=int(input())
data=list(map(int, input().split()))
print('%d %d %d' % (min(data), max(data), sum(data) ))

Buggy python submission (verdict: Runtime Error):
n=input()
data=list(int, input().split())
print('%d %d %d' %(min(data), max(data), sum(data) ))

Fixed submission:
n=int(input())
data=list(map(int, input().split()))
print('%d %d %d' % (min(data), max(data), sum(data) ))

Buggy python submission (verdict: Runtime Error):
n=input()
data=list(map((int, input().split()))
print('%d %d %d' %(min(data), max(data), sum(data) ))

Fixed submission:
n=int(input())
data=list(map(int, input().split()))
print('%d %d %d' % (min(data), max(data), sum(data) ))

Buggy python submission (verdict: Runtime Error):
n=input()
data=list(map((int, input().split()))
print('%d %d %d' %(min(data), max(data),n=int(input())
data=list(map(int, input().split()))
print('%d %d %d' % (min(data), max(data), sum(data) )) sum(data) ))

Fixed submission:
n=int(input())
data=list(map(int, input().split()))
print('%d %d %d' % (min(data), max(data), sum(data) ))

Buggy python submission (verdict: Runtime Error):
n=input()
data=list(map((int, input().split()))
print('%d %d %d' %(min(data), max(data),n=int(input())
data=list(map(int, input().split()))
print('%d %d %d' % (min(data), max(data), sum(data) )) sum(data) )))

Fixed submission:
n=int(input())
data=list(map(int, input().split()))
print('%d %d %d' % (min(data), max(data), sum(data) ))

Buggy python submission (verdict: Runtime Error):
n=int(input())
data=list(map(int, input().split()))
print('%d %d %d' % (min(data), max(data), sum(data) )))

Fixed submission:
n=int(input())
data=list(map(int, input().split()))
print('%d %d %d' % (min(data), max(data), sum(data) ))
Buggy python submission (verdict: Runtime Error):
import sys
while True:
	y,x=map(int, input().split())
	if x==y==0: break
	for i in range(1,y+1):
		for j in range(1,x+1):
			if(i%2==1):
				if(j%2==1):
					sys.stdout.write('#')
				elif(j%2==0):
					sys.stdout.write('.')
			if(i%2==0):
				if(j%2==0):
					sys.stdout.write('#')
				elif(j%2==1):
					sys.stdout.write('.')
		print('')
	print('')

Fixed submission:
import sys
while True:
	y,x=map(int, input().split())
	if x==y==0: break
	for i in range(1,y+1):
		for j in range(1,x+1):
			if(i%2==1):
				if(j%2==1):
					sys.stdout.write('#')
				elif(j%2==0):
					sys.stdout.write('.')
			if(i%2==0):
				if(j%2==0):
					sys.stdout.write('#')
				elif(j%2==1):
					sys.stdout.write('.')
		print('')
	print('')
Buggy python submission (verdict: Runtime Error):
import sys
while True:
	data=list(map(int,input().split()))
	if data[0]==data[1]==data[2]==-1: break
	
	if data[0]!=-1 and data[1]!=-1:
		sum=data[0]+data[1]
	if data[2]!=-1 and sum<data[2]
		sum=data[2]
		if sum>=50:
			sum=50
		elif sum<50:
			sum=0
	if data[0]==-1 or data[1]==-1:
		print('F')
	elif sum<30 :
		print('F')
	elif 30<=sum<50:
		print('D')
	elif 50<=sum<65:
		print('C')
	elif 65<=sum<=79:
		print('B')
	elif 80<=sum:
		print('A')
		
	

Fixed submission:
while True:
	data=list(map(int,input().split()))
	if data[0]==data[1]==data[2]==-1: break
	
	if data[0]!=-1 and data[1]!=-1:
		sum=data[0]+data[1]
	if data[2]!=-1 and sum<data[2]:
		if data[2]>=50:
			sum=50
		
	if data[0]==-1 or data[1]==-1:
		print('F')
	elif sum<30 :
		print('F')
	elif 30<=sum<50:
		print('D')
	elif 50<=sum<65:
		print('C')
	elif 65<=sum<=79:
		print('B')
	elif 80<=sum:
		print('A')

Buggy python submission (verdict: Runtime Error):
import sys
while True:
	data=list(map(int,input().split()))
	if data[0]==data[1]==data[2]==-1: break
	
	if data[0]!=-1 and data[1]!=-1:
		sum=data[0]+data[1]
	if data[2]!=-1 and sum<data[2]
		sum=data[2]
		if sum>=50:
			sum=50
		elif sum<50:
			sum=0
	if data[0]==-1 or data[1]==-1:
		print('F')
	elif sum<30 :
		print('F')
	elif 30<=sum<50:
		print('D')
	elif 50<=sum<65:
		print('C')
	elif 65<=sum<=79:
		print('B')
	elif 80<=sum:
		print('A')
		
	

Fixed submission:
while True:
	data=list(map(int,input().split()))
	if data[0]==data[1]==data[2]==-1: break
	
	if data[0]!=-1 and data[1]!=-1:
		sum=data[0]+data[1]
	if data[2]!=-1 and sum<data[2]:
		if data[2]>=50:
			sum=50
		
	if data[0]==-1 or data[1]==-1:
		print('F')
	elif sum<30 :
		print('F')
	elif 30<=sum<50:
		print('D')
	elif 50<=sum<65:
		print('C')
	elif 65<=sum<=79:
		print('B')
	elif 80<=sum:
		print('A')

Buggy python submission (verdict: Runtime Error):
while True:
	m,f,r=map(int,input().split())
	if m==f==r==-1: break
	if m==-1 or f==-1:
		sum=0
	elif r!=-1:
		if r>49:
			sum=50	
		else :
			sum=r
		
	elif sum<30 :
		print('F')
	elif 30<=sum<50:
		print('D')
	elif 50<=sum<65:
		print('C')
	elif 65<=sum<=79:
		print('B')
	elif 80<=sum:
		print('A')
		
	

Fixed submission:
while True:
	data=list(map(int,input().split()))
	if data[0]==data[1]==data[2]==-1: break
	
	if data[0]!=-1 and data[1]!=-1:
		sum=data[0]+data[1]
	if data[2]!=-1 and sum<data[2]:
		if data[2]>=50:
			sum=50
		
	if data[0]==-1 or data[1]==-1:
		print('F')
	elif sum<30 :
		print('F')
	elif 30<=sum<50:
		print('D')
	elif 50<=sum<65:
		print('C')
	elif 65<=sum<=79:
		print('B')
	elif 80<=sum:
		print('A')
Buggy python submission (verdict: Runtime Error):
x,y=map(int,raw_input().split())
a=[map(int,raw_input().split()) for i in range(x)]
for i in range(x):
	a[i].append(sum(a[i]))
	for j in range(y+1):
		print a[i][j],
	print
for i in range(???+1):
	print sum([row[i] for row in a]),

Fixed submission:
x,y=map(int,raw_input().split())
a=[map(int,raw_input().split()) for i in range(x)]
for i in range(x):
	a[i].append(sum(a[i]))
	for j in range(y+1):
		print a[i][j],
	print
for i in range(y+1):
	print sum([row[i] for row in a]),
Buggy python submission (verdict: Runtime Error):
n,m,l=map(int,raw_input().split())
matA=[map(int,raw_input().split()) for i in range(m)]
matB=[map(int,raw_input().split()) for j in range(l)]
for i in range(n):
	for j in range(l):
		print sum([A[i][k]*B[k][j] for k in range(m)]),
	print	

Fixed submission:
n,m,l=map(int,raw_input().split())
matA=[map(int,raw_input().split()) for i in range(n)]
matB=[map(int,raw_input().split()) for j in range(m)]
for i in range(n):
	for j in range(l):
		 print sum([matA[i][k]*matB[k][j] for k in range(m)]),
	print
Buggy python submission (verdict: Runtime Error):
lit=raw_input().lower()
Dic={'a':0,'b':0,'c':0,'d':0,'e':0,'f':0,'g':0,'h':0,'i':0,'j':0,'k':0,'l':0,'m':0,'n':0,'o':0,'p':0,'q':0,'r':0,'s':0,'t':0,'u':0,'v':0,'w':0,'x':0,'y':0,'z':0 }
for i in lit:
	Dic[i]+=1
Key=Dic.keys()
Key.sort()
for key in Key:
	print key, ":" ,Dic[key]

Fixed submission:
import sys;
Dic={'a':0,'b':0,'c':0,'d':0,'e':0,'f':0,'g':0,'h':0,'i':0,'j':0,'k':0,'l':0,'m':0,'n':0,'o':0,'p':0,'q':0,'r':0,'s':0,'t':0,'u':0,'v':0,'w':0,'x':0,'y':0,'z':0 }
while True:
	lit=sys.stdin.readline().rstrip().lower()
	if not lit: break
	for i in lit:
		if ord('a')<=ord(i)<=ord('z'):
			Dic[i]+=1
Key=Dic.keys()
Key.sort()
for key in Key:
	print key, ":" ,Dic[key]

Buggy python submission (verdict: Runtime Error):
lit=raw_input().lower()
Dic={'a':0,'b':0,'c':0,'d':0,'e':0,'f':0,'g':0,'h':0,'i':0,'j':0,'k':0,'l':0,'m':0,'n':0,'o':0,'p':0,'q':0,'r':0,'s':0,'t':0,'u':0,'v':0,'w':0,'x':0,'y':0,'z':0 }
for i in lit:
	Dic[i]+=1
Key=Dic.keys()
Key.sort()
for key in Key:
	print key, ":" ,Dic[key]

Fixed submission:
import sys;
Dic={'a':0,'b':0,'c':0,'d':0,'e':0,'f':0,'g':0,'h':0,'i':0,'j':0,'k':0,'l':0,'m':0,'n':0,'o':0,'p':0,'q':0,'r':0,'s':0,'t':0,'u':0,'v':0,'w':0,'x':0,'y':0,'z':0 }
while True:
	lit=sys.stdin.readline().rstrip().lower()
	if not lit: break
	for i in lit:
		if ord('a')<=ord(i)<=ord('z'):
			Dic[i]+=1
Key=Dic.keys()
Key.sort()
for key in Key:
	print key, ":" ,Dic[key]
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, B = map(int, input().split())
print((A*B) + " " + (2*A+2*B))


Fixed submission:
A, B = map(int, input().split())
print(str(A*B) + " " + str(2*A+2*B))
Buggy python submission (verdict: Runtime Error):
time = map(int, input().split())
h=0
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))


Fixed submission:
time =int(input())
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))

Buggy python submission (verdict: Runtime Error):
time = map(int, input())
h=0
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))


Fixed submission:
time =int(input())
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))

Buggy python submission (verdict: Runtime Error):
time =input())
h=0
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))javascript:void(0)


Fixed submission:
time =int(input())
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))

Buggy python submission (verdict: Runtime Error):
time =input()
h=0
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))javascript:void(0)


Fixed submission:
time =int(input())
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))

Buggy python submission (verdict: Runtime Error):
time =input()
h=0
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))javascript:void(0)


Fixed submission:
time =int(input())
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))

Buggy python submission (verdict: Runtime Error):
time =input()
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))


Fixed submission:
time =int(input())
h = int(time/(60*60))
m=int(time/60-h*60)
s=int(time-h*60*60-m*60)
print(str(h)+":"+str(m)+":"+str(s))
Buggy python submission (verdict: Runtime Error):
A = int(input())
if (0<=A and A<=100):
    print("Yes")
else:
    print("No")


Fixed submission:
A, B, C = map(int, input().split())
if (A<B and B<C):
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
A = int(input())
if (0<=A and A<=100):
    print("Yes")
else:
    print("No")


Fixed submission:
A, B, C = map(int, input().split())
if (A<B and B<C):
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
a,b = int(input().split())
print( a*b , 2 * (a+b) )

Fixed submission:
import sys
num = input().split()
a = int(num[0])
b = int(num[1])
print( a*b , 2 * (a+b) )
Buggy python submission (verdict: Runtime Error):
import sys
def number():
    while True:
        a,b = map(int(input().split()))
        if a == 0 and b == 0 :
	        break
        if a < b:
    	    print (a, b)
        else:
    	    print (b,a)

if __name__ == "__main__":
	number()

Fixed submission:
import sys
def number():
    a = []
    b = []
    i = 0
    while True:
        x,y = map(int,input().split())
        if x == 0 and y == 0:
            break
        a.append(x)
        b.append(y)
        i += 1
    for j in range(len(a)):
        if a[j] < b[j]:
            print (a[j],b[j])
        else:
            print (b[j],a[j])

if __name__ == "__main__":
    number()
Buggy python submission (verdict: Runtime Error):

if __name__ == "__main__":
	while True:
		score = [int(i) for i in input().split()]
		if score[0] == score[1] == score[2] == -1:
			break
		if score[0] == -1 or score[1] == -1:
			print ('F')
		else:
			if score[0] + score[1] >= 80:
				print ('A')
			elif score[0] + score[1] >= 65:
				print ('B')
			elif score[0] + score[1] >= 50:
				print ('C')
			elif score[0] + score[1] >= 30:
				if score[2] == -1:
					print ('D')
				else:
					if score[2] >= '50':
						print ('C')
					else:
						print ('D')
			else:
				print ('F')

Fixed submission:

if __name__ == "__main__":
	while True:
		score = [int(i) for i in input().split()]
		if score[0] == score[1] == score[2] == -1:
			break
		if score[0] == -1 or score[1] == -1:
			print ('F')
		else:
			if score[0] + score[1] >= 80:
				print ('A')
			elif score[0] + score[1] >= 65:
				print ('B')
			elif score[0] + score[1] >= 50:
				print ('C')
			elif score[0] + score[1] >= 30:
				if score[2] == -1:
					print ('D')
				else:
					if score[2] >= 50:
						print ('C')
					else:
						print ('D')
			else:
				print ('F')
Buggy python submission (verdict: Runtime Error):
a = input()
b = input()

print('{0} {1}'.format(a*b,2*(a+b)))

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

count = 0
for n in range(a,b+1):
	if c % a == 0:
		count += 1
	a += 1

print('{0}'.format(count))

Fixed submission:
a,b,c = map(int,input().split())
cnt = 0

for i in range(a,b+1):
    if(c%i==0):
        cnt+=1
print(cnt)
Buggy python submission (verdict: Runtime Error):
import math

r = int(input())

s = float(2 * math.pi * r)
circle = float(math.pi * r**2)

print("%.7f %.7f" %(s,circle))

Fixed submission:
import math

r = input()
print('%f %f'% (math.pi *r *r , 2 * math.pi * r))

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

r = int(input())

s = 2 * math.pi * r
circle = math.pi * r**2

print("%.7f %.7f" %(s,circle))

Fixed submission:
import math

r = input()
print('%f %f'% (math.pi *r *r , 2 * math.pi * r))

Buggy python submission (verdict: Runtime Error):
from math import pi

r = int(input())

s = 2 * pi * r
circle = pi * r**2

print("%.7f %.7f" %(s,circle))

Fixed submission:
import math

r = input()
print('%f %f'% (math.pi *r *r , 2 * math.pi * r))
Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == 0:
        break
    sum = 0
    while x != 0:
        sum += x%10
        x = x//10

    print(sum)

Fixed submission:
while True:
    x = int(input())
    if x == 0:
        break
    sum = 0
    while x != 0:
        sum += x%10
        x = x//10

    print(sum)
Buggy python submission (verdict: Time Limit Exceeded):
import sys
from collections import deque

# 初期化
n_V, n_E, r = map(int, input().split())

E = [[] for _ in range(n_V)]
D = [sys.maxsize for _ in range(n_V)]

# 入力
for i in range(n_E):
    v, e, d = map(int, input().split())
    E[v].append((e, d))

#　各頂点への最短距離を求める処理
D[r] = 0
queue = deque([r])
visited = set()

while len(queue) != 0:
    current = queue.popleft()
    visited.add(current)

    for e, d in E[current]:
        if D[e] > D[current] + d:
            D[e] = D[current] + d
            if e in visited: visited.remove(e)

        if e not in queue and e not in visited:
            queue.append(e)

# 出力
for d in D:
    if d == sys.maxsize:
        print('INF')
    else:
        print(d)



Fixed submission:
import sys
from heapq import heappush
from heapq import heappop


# 入力
n_V, n_E, r = map(int, input().split())

E = [[] for _ in range(n_V)]
for i in range(n_E):
    v, e, c = map(int, input().split())
    E[v].append((e, c))


# 初期化
D = [sys.maxsize for _ in range(n_V)]
D[r] = 0

h = []
heappush(h, (D[r], r))


#　各頂点への最短距離を求める処理
while len(h) != 0:
    _, index = heappop(h)

    for e, c in E[index]:
        d = D[index] + c
        if D[e] > d:
            D[e] = d
            heappush(h, (d, e))


# 出力
for d in D:
    if d == sys.maxsize:
        print('INF')
    else:
        print(d)
Buggy python submission (verdict: Runtime Error):

x = input()

print(x*x*x)

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

Buggy python submission (verdict: Runtime Error):

x = input()

print(x**3)

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

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


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

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


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

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


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

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


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

print(a*b)


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

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

print(a*b, 2*a+2*b)


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

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

print("%d %d", % a*b, 2*a + 2*b)



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

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

print("%d %d", % (a*b, 2*a + 2*b))



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

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

print("%d %d", % (a*b, 2*a + 2*b))



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

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

print("%d %d", %(a*b, 2*a + 2*b))



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

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

print("%d %d", %(a*b, 2*a + 2*b))



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

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



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

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



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

n = int(n)

for i in range(1, n+1):
  if '3' in str(i)
    print(i)



Fixed submission:
N = int(input())
res = []
for i in range(1, N+1):
    if '3' in str(i) or i%3 == 0:
        res.append(i)

i = 0
print(" ", end="")
for r in res:
    print(r, end="")
    if i == len(res)-1:
        #pass
         print('\n', end="")
    else:
        print(" ", end="")

    i += 1
Buggy python submission (verdict: Runtime Error):
x1,y1,x2,y2 = map(int,input().split())
distance = ( (x1 - x2)**2 + (y1 - y2)**2 )**(1/2)
print('{}'.format(distance))


Fixed submission:
x1,y1,x2,y2 = map(float,input().split())
distance = ( (x1 - x2)**2 + (y1 - y2)**2 )**(1/2) 
print('{}'.format(distance))
Buggy python submission (verdict: Runtime Error):
n = int(input())
data = input().split()
import math
sum = 0
for i in range(n):
    sum = sum + int(data[I])
average = sum / n
a = 0
for i in range(n):
    a = a + (int(data[i]) - average)**2
print('{}'.format(math.sqrt(a/n)))



Fixed submission:
while True:
    n = int(input())
    if n == 0:
        break
    data = input().split()
    import math
    sum = 0
    for i in range(n):
        sum = sum + int(data[i])
    average = sum / n
    a = 0
    for i in range(n):
        a = a + (int(data[i]) - average)**2
    print('{}'.format(math.sqrt(a/n)))

Buggy python submission (verdict: Runtime Error):
while True:
    n = int(input())
    if n == 0:
        break
    data = input().split()
    import math
    sum = 0
    for i in range(n):
    sum = sum + int(data[i])
    average = sum / n
    a = 0
    for i in range(n):
    a = a + (int(data[i]) - average)**2
    print('{}'.format(math.sqrt(a/n)))


Fixed submission:
while True:
    n = int(input())
    if n == 0:
        break
    data = input().split()
    import math
    sum = 0
    for i in range(n):
        sum = sum + int(data[i])
    average = sum / n
    a = 0
    for i in range(n):
        a = a + (int(data[i]) - average)**2
    print('{}'.format(math.sqrt(a/n)))
Buggy python submission (verdict: Runtime Error):
dice = input().split()
direction = list(input())
dice2 = []
for i in range(len(direction)):
    dice2 = dice
    print(dice2)
    if direction[i] == 'E':
        dice = [dice2[3],dice2[1],dice2[0],dice2[5],dice2[4],dice2[2]]
        print(dice)
    elif direction[i] == 'N':
        dice = [dice2[1],dice2[5],dice2[2],dice2[3],dice2[0],dice2[4]]
        print(dice)
    elif direction[i] == 'S':
        dice = [dice2[4],dice2[0],dice2[2],dice2[3],dice2[5],dice2[1]]
        print(dice)
    else:
        dice = [dice2[2],dice2[1],dice2[5],dice2[0],dice2[4],dice2[3]]
        print(dice)
print('{0}'.format(int(dice[0)])) 


Fixed submission:
dice = input().split()
direction = list(input())
dice2 = []
for i in range(len(direction)):
    dice2 = dice
    if direction[i] == 'E':
        dice = [dice2[3],dice2[1],dice2[0],dice2[5],dice2[4],dice2[2]]
    elif direction[i] == 'N':
        dice = [dice2[1],dice2[5],dice2[2],dice2[3],dice2[0],dice2[4]]
    elif direction[i] == 'S':
        dice = [dice2[4],dice2[0],dice2[2],dice2[3],dice2[5],dice2[1]]
    else:
        dice = [dice2[2],dice2[1],dice2[5],dice2[0],dice2[4],dice2[3]]
print('{0}'.format(int(dice[0])))
Buggy python submission (verdict: Runtime Error):
a = input()
b = input()
a = int(a)
b = int(b)
print('%d %d'%(a*b,2*a+2*b))

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

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

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

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

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