Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
n=int(input())
hoge=[]
for i in range(n):
  x,y,z=map(int,input().split())
  if(z!=0):
    hoge.append([x,y,z])
  

if(len(hoge)==1):
  print(*hoge[0])
  exit()

for i in range(101):
  for j in range(101):
    h=[]
    for k in range(n):
      h.append(hoge[k][2]+abs(hoge[k][0]-i)+abs(hoge[k][1]-j))
      
    if(h.count(h[0])==len(h)):
      print(i,j,h[0])

Fixed submission:
n=int(input())
hoge=[]
for i in range(n):
  x,y,z=map(int,input().split())
  if(z!=0):
    hoge.append([x,y,z])
  

if(len(hoge)==1):
  print(*hoge[0])
  exit()

for i in range(101):
  for j in range(101):
    h=[]
    for k in range(len(hoge)):
      h.append(hoge[k][2]+abs(hoge[k][0]-i)+abs(hoge[k][1]-j))
      
    if(h.count(h[0])==len(h)):
      print(i,j,h[0])

Buggy python submission (verdict: Runtime Error):
n=int(input())
hoge=[]
for i in range(n):
  x,y,z=map(int,input().split())
  if(z!=0):
    hoge.append([x,y,z])
  
for i in range(101):
  for j in range(101):
    h=[]
    for k in range(n):
      h.append(hoge[k][2]+abs(hoge[k][0]-i)+abs(hoge[k][1]-j))
      
    if(h.count(h[0])==len(h)):
      print(i,j,h[0])

Fixed submission:
n=int(input())
hoge=[]
for i in range(n):
  x,y,z=map(int,input().split())
  if(z!=0):
    hoge.append([x,y,z])
  

if(len(hoge)==1):
  print(*hoge[0])
  exit()

for i in range(101):
  for j in range(101):
    h=[]
    for k in range(len(hoge)):
      h.append(hoge[k][2]+abs(hoge[k][0]-i)+abs(hoge[k][1]-j))
      
    if(h.count(h[0])==len(h)):
      print(i,j,h[0])
Buggy python submission (verdict: Runtime Error):
hoge = [int(i) for i in input().split()]
X = [int(i) for i in input().split()]
Y = [int(i) for i in input().split()]

X.sort()
Y.sort()

if(y[0]-X[-1]>0):
  print("No War")
else:
  print("War")

Fixed submission:
hoge = [int(i) for i in input().split()]
X = [int(i) for i in input().split()]
Y = [int(i) for i in input().split()]
X.append(hoge[2])
Y.append(hoge[3])
X.sort()
Y.sort()
 

if(Y[0]-X[-1]>0):
  print("No War")
else:
  print("War")
Buggy python submission (verdict: Time Limit Exceeded):
n,x=map(int,input().split())
huga=list(map(int,input().split()))
hoge=[]
for i in range(n):
  hoge.append(abs(huga[i]-x))
hoge.sort(reverse=True)
D=hoge[0]

for i in range(D):
  ans=D-i
  flag=0
  for j in range(n):
    if(hoge[j]%ans>0):
      flag=1
  if(flag==0):
    print(ans)
    break

Fixed submission:
#ユークリッド互除法
def gcd(a,b):
  if(a<b):
    a,b=b,a
  if(b==0):
    return a
  c= a%b
  return gcd(b,c)

n,x=map(int,input().split())
hoge=list(map(int,input().split()))
ans=abs(x-hoge[0])
for i in range(n):
  ans=gcd(ans,abs(hoge[i]-x))
print(ans)
Buggy python submission (verdict: Runtime Error):
A,B=map(int,input().split())
print((A-1)*(B-1)

Fixed submission:
A,B=map(int,input().split())
print((A-1)*(B-1))
Buggy python submission (verdict: Runtime Error):
A=int(input())
ARC=1
if(A<1200):
  print("ABC")
  ARC=0

if(A>=2800):
  print("AGC")
  ARC=0
  
if(ARC=1):
  print("ARC")


Fixed submission:
A=int(input())
ARC=1
if(A<1200):
  print("ABC")
  ARC=0

if(A>=2800):
  print("AGC")
  ARC=0
  
if(ARC==1):
  print("ARC")
Buggy python submission (verdict: Runtime Error):
hoge=input()
no=0
if(hoge[0]=="A"):
  hoge.strip("A")
else:
  no=1

if(hoge[0].islower()):
  hoge.strip(hoge[0])
else:
  no=1

if(hoge[0]=="C"):
  hoge.strip("C")
else:
  no=1
  
if(hoge.islower()==false):
  no=1
  
if(no==0):
  print("AC")
else:
  print("WA")

Fixed submission:
#ABC097B
hoge=input()
no=0

if(hoge[0]=="A"):
    hoge=hoge.replace("A","a",1)
else:
    no=1
    
if not(hoge[1].islower() and hoge[-1].islower()):
    no=1

if(hoge.count("C")==1):
    hoge=hoge.replace("C","c",1)
else:
    no=1
    
if(hoge.islower() and no==0):
    print("AC")
else:
    print("WA")
Buggy python submission (verdict: Runtime Error):
A,B=map(int,input().split)
print(max(A+B,A-B,A*B))

Fixed submission:
A,B=map(int,input().split())
print(max(A+B,A-B,A*B))
Buggy python submission (verdict: Runtime Error):
n,m=map(int,input().split())
hoge=[[0 for i in range(n+2)] for j in range(m+2)]
for i in range(m):
  sss=input()
  for j in range(n):
    if(sss[j]=="#"):
      hoge[1+i][1+j]=1
    
flag=True
for i in range(m):
  for j in range(n):
    if(hoge[1+i][1+j]==1):
      ans=0
      ans+=hoge[i][1+j]+hoge[1+i][j]+hoge[2+i][1+j]+hoge[1+i][2+j]
      if(ans==0):
        flag=False
        
if(flag):
  print("Yes")
else:
  print("No")

Fixed submission:
m,n=map(int,input().split())
hoge=[[0 for i in range(n+2)] for j in range(m+2)]
for i in range(m):
  sss=input()
  for j in range(n):
    if(sss[j]=="#"):
      hoge[1+i][1+j]=1
    

flag=True
for i in range(m):
  for j in range(n):
    if(hoge[1+i][1+j]==1):
      ans=0
      #print(1+i,1+j,ans,hoge[i][1+j],hoge[1+i][j],hoge[2+i][1+j],hoge[1+i][2+j])
      ans=max(hoge[i][1+j],hoge[1+i][j],hoge[2+i][1+j],hoge[1+i][2+j])
      if(ans==0):
        flag=False
        
if(flag):
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
n,m=map(int,input().split())
hoge=[[0 for i in range(n+2)] for j in range(m+2)]
for i in range(n):
  sss=input()
  for j in range(m):
    if(sss[j]=="#"):
      hoge[1+i][1+j]=1
    
flag=True
for i in range(m):
  for j in range(n):
    if(hoge[1+i][1+j]==1):
      ans=0
      ans+=hoge[i][1+j]+hoge[1+i][j]+hoge[2+i][1+j]+hoge[1+i][2+j]
      if(ans==0):
        flag=False
        
if(flag):
  print("Yes")
else:
  print("No")

Fixed submission:
m,n=map(int,input().split())
hoge=[[0 for i in range(n+2)] for j in range(m+2)]
for i in range(m):
  sss=input()
  for j in range(n):
    if(sss[j]=="#"):
      hoge[1+i][1+j]=1
    

flag=True
for i in range(m):
  for j in range(n):
    if(hoge[1+i][1+j]==1):
      ans=0
      #print(1+i,1+j,ans,hoge[i][1+j],hoge[1+i][j],hoge[2+i][1+j],hoge[1+i][2+j])
      ans=max(hoge[i][1+j],hoge[1+i][j],hoge[2+i][1+j],hoge[1+i][2+j])
      if(ans==0):
        flag=False
        
if(flag):
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
n,m=map(int,input().split())
hoge=[[0 for i in range(n+2)] for j in range(m+2)]
for i in range(m):
  sss=input()
  for j in range(n):
    if(sss[j]=="#"):
      hoge[1+i][1+j]=1
    
flag=True
for i in range(m):
  for j in range(n):
    if(hoge[1+i][1+j]==1):
      ans=0
      ans+=hoge[i][1+j]+hoge[1+i][j]+hoge[2+i][1+j]+hoge[1+i][2+j]
      if(ans==0):
        flag=False
        
if(flag):
  print("Yes")
else:
  print("No")

Fixed submission:
m,n=map(int,input().split())
hoge=[[0 for i in range(n+2)] for j in range(m+2)]
for i in range(m):
  sss=input()
  for j in range(n):
    if(sss[j]=="#"):
      hoge[1+i][1+j]=1
    

flag=True
for i in range(m):
  for j in range(n):
    if(hoge[1+i][1+j]==1):
      ans=0
      #print(1+i,1+j,ans,hoge[i][1+j],hoge[1+i][j],hoge[2+i][1+j],hoge[1+i][2+j])
      ans=max(hoge[i][1+j],hoge[1+i][j],hoge[2+i][1+j],hoge[1+i][2+j])
      if(ans==0):
        flag=False
        
if(flag):
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Time Limit Exceeded):
a,b,k=map(int,input().split())
for i in range(b-a +1):
  if(a+i>=b-(k-1)):
    print(a+i)
  elif(a+i<=a+(k-1)):
    print(a+i)
  

Fixed submission:
a,b,k=map(int,input().split())
if(b-a<300):
  for i in range(b-a+1):
    if(a+i<=a+(k-1)):
      print(a+i)
    elif(a+i>=b-(k-1)):
      print(a+i)
else:
  for i in range(k):
    print(a+i)
  for i in range(k):
    print(b-(k-1)+i)
Buggy python submission (verdict: Runtime Error):
a,b=int(input())

if(a==1):
  print(max(0,b-2))
elif(b==1):
  print(max(0,a-2))
else:
  print((a-2)*(b-2))

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

if(a==1 and b==1):
  print(1)
elif(a==1):
  print(max(0,b-2))
elif(b==1):
  print(max(0,a-2))
else:
  print((a-2)*(b-2))
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=int(input())
if(a*b%2==0):
  print("Even")
else:
  print("Odd")

Fixed submission:
a,b=map(int,input().split())
if(a*b%2==0):
  print("Even")
else:
  print("Odd")
Buggy python submission (verdict: Runtime Error):
a,b=int(input())
ans=0
if(b<10):
  ans=a*10+b
elif(b<100):
  ans=a*100+b
else:
  ans=a*1000+b
  
  
n=int(1+ans**0.5)
flag=0
for i in range(n):
  if(i**2==ans):
    flag=1
    break
    
if(flag==1):
  print("Yes")
else:
  print("No")

Fixed submission:
a,b=map(int,input().split())
ans=0
if(b<10):
  ans=a*10+b
elif(b<100):
  ans=a*100+b
else:
  ans=a*1000+b
  
  
n=int(1+ans**0.5)
flag=0
for i in range(n):
  if(i**2==ans):
    flag=1
    break
    
if(flag==1):
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
a,b=map(str,input().split())

if(a=="A"):
  c=1
if(a=="B"):
  c=2
if(a=="C"):
  c=3
if(a=="D"):
  c=4
if(a=="E"):
  c=5
if(a=="F"):
  c=6
if(b=="A"):
  d=1
if(b=="B"):
  d=2
if(b=="C"):
  d=3
if(b=="D"):
  d=4
if(b=="E"):
  d=5
if(b=="F"):
  d=6
  
if(c>d):
  print(">")
if(c<d):
  print("<")
if(c=d):
  print("=")

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

if(a=="A"):
  c=1
if(a=="B"):
  c=2
if(a=="C"):
  c=3
if(a=="D"):
  c=4
if(a=="E"):
  c=5
if(a=="F"):
  c=6
if(b=="A"):
  d=1
if(b=="B"):
  d=2
if(b=="C"):
  d=3
if(b=="D"):
  d=4
if(b=="E"):
  d=5
if(b=="F"):
  d=6
  
if(c>d):
  print(">")
if(c<d):
  print("<")
if(c==d):
  print("=")
Buggy python submission (verdict: Runtime Error):
a=input()
b=input()
ans=0
if(a[0]==b[2]):
  if(a[1]==b[1]):
    if(a[2]==b[0]):
      print("YES")
      ans=1
      
if(ans=0):
  print("NO")

Fixed submission:
a=input()
b=input()
ans=0
if(a[0]==b[2]):
  if(a[1]==b[1]):
    if(a[2]==b[0]):
      print("YES")
      ans=1
      
if(ans==0):
  print("NO")
Buggy python submission (verdict: Runtime Error):
hoge=input()
key=input()
ans=[]
for i in range(len(hoge)-len(key)+1):
  flag=0
  for j in range(len(key)):
    if(hoge[i+j]==key[j] or hoge[i+j]=="?"):
      flag+=1
  if(flag==len(key)):
    kari=hoge[:i]+key+hoge[i+len(key):]
    ans.append(kari.replace("?","a"))
    
ans.sort()
print(ans[0])

Fixed submission:
hoge=input()
key=input()
ans=[]
for i in range(len(hoge)-len(key)+1):
  flag=0
  for j in range(len(key)):
    if(hoge[i+j]==key[j] or hoge[i+j]=="?"):
      flag+=1
  if(flag==len(key)):
    kari=hoge[:i]+key+hoge[i+len(key):]
    ans.append(kari.replace("?","a"))
    
if(len(ans)>0):
  ans.sort()
  print(ans[0])
else:
  print("UNRESTORABLE")
Buggy python submission (verdict: Runtime Error):
a,b=map(int.input().split())
if(a-b>=0):
  print(a-b)
else:
  print(0)

Fixed submission:
a,b=map(int,input().split())
if(a-b>=0):
  print(a-b)
else:
  print(0)
Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
ans=0
hoge=list(map(int,input().split()))
for i in range(100000):
  huga=hoge.count(i-1)+hoge.count(i)+hoge.count(i+1)
  if(huga>=ans):
    ans=huga
print(ans)

Fixed submission:
n=int(input())
hoge=list(map(int,input().split()))
huga=[0]*(10**5+1)
for i in hoge:
  if(i==10**5):
    huga[i-1]+=1
    huga[i]+=1
  elif(i==0):
    huga[i]+=1
    huga[i+1]+=1
  else:
    huga[i-1]+=1
    huga[i]+=1
    huga[i+1]+=1
print(max(huga))

Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
ans=0
hoge=list(map(int,input().split()))
for i in range(n):
  if(hoge.count(hoge[i]-1)+hoge.count(hoge[i])+hoge.count(hoge[i]+1)>=ans):
    ans=hoge.count(hoge[i]-1)+hoge.count(hoge[i])+hoge.count(hoge[i]+1)
print(ans)

Fixed submission:
n=int(input())
hoge=list(map(int,input().split()))
huga=[0]*(10**5+1)
for i in hoge:
  if(i==10**5):
    huga[i-1]+=1
    huga[i]+=1
  elif(i==0):
    huga[i]+=1
    huga[i+1]+=1
  else:
    huga[i-1]+=1
    huga[i]+=1
    huga[i+1]+=1
print(max(huga))

Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
ans=0
hoge=list(map(int,input().split()))
for i in range(100000):
  if(hoge.count(i-1)+hoge.count(i)+hoge.count(i+1)>=ans):
    ans=hoge.count(i-1)+hoge.count(i)+hoge.count(i+1)
    
print(ans)

Fixed submission:
n=int(input())
hoge=list(map(int,input().split()))
huga=[0]*(10**5+1)
for i in hoge:
  if(i==10**5):
    huga[i-1]+=1
    huga[i]+=1
  elif(i==0):
    huga[i]+=1
    huga[i+1]+=1
  else:
    huga[i-1]+=1
    huga[i]+=1
    huga[i+1]+=1
print(max(huga))
Buggy python submission (verdict: Runtime Error):
n=int(input())
hoge=list(map(int,input().split()))

print(max(hoge)-min()hoge)

Fixed submission:
n=int(input())
hoge=list(map(int,input().split()))

print(max(hoge)-min(hoge))
Buggy python submission (verdict: Runtime Error):
n=int(input())
hoge=list(map(int,input().split()))

color=[0]*9
for i in range(n):
  color[hoge[i]//400]+=1

ans=0
for i in color[:8]:
  if(i!=0):
    ans+=1
    
print(ans,ans+color[8])

Fixed submission:
n=int(input())
hoge=list(map(int,input().split()))

color=[0]*9
for i in range(n):
  if(hoge[i]<3200):
    color[hoge[i]//400]+=1
  else:
    color[8]+=1

ans=0
for i in color[:8]:
  if(i!=0):
    ans+=1

if(color[8]==n):
  print(1,n)
else:
  print(ans,ans+color[8])
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().spkit())
if(a+b>=10):
  print("error")
else:
  print(a+b)

Fixed submission:
a,b=map(int,input().split())
if(a+b>=10):
  print("error")
else:
  print(a+b)
Buggy python submission (verdict: Runtime Error):
n,m=map(int,input().split())
hoge=[]
for i in range(m):
  a,b=map(int,input())
  hoge.append(a)
  hoge.append(b)
  
for i in range(n):
  print(hoge.count(i+1))

Fixed submission:
n,m=map(int,input().split())
hoge=[]
for i in range(m):
  a,b=map(int,input().split())
  hoge.append(a)
  hoge.append(b)
  
for i in range(n):
  print(hoge.count(i+1))
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,input().split())
ans=0
flag=0
for i in range(b):
  ans+=a
  if(ans%b==c):
    flag=1

if(flag=1):
  print("YES")
else:
  print("NO")

Fixed submission:
a,b,c=map(int,input().split())
ans=0
flag=0
for i in range(b):
  ans+=a
  if(ans%b==c):
    flag=1

if(flag==1):
  print("YES")
else:
  print("NO")
Buggy python submission (verdict: Runtime Error):
a=int(input)
print(800*a-200*(int(a/15)))

Fixed submission:
a=int(input())
print(800*a-200*(int(a/15)))
Buggy python submission (verdict: Runtime Error):
a,b=(int,input().split())

if(a==1):
  a=14
if(b==1):
  b=14
  
if(a>b):
  print("Alice")
elif(a<b):
  print("Bob")
else:
  print("Drow")

Fixed submission:
a,b=map(int,input().split())
if(a==1):
  a=14
if(b==1):
  b=14

if(a>b):
  print("Alice")
elif(a<b):
  print("Bob")
else:
  print("Draw")
Buggy python submission (verdict: Runtime Error):
a=input()
if(a=="a" or a=="i" or a=="u" or a=="e" or a=="o):
   print("vowel")
else:
   print("consonant")

Fixed submission:
a=input()
if(a=="a" or a=="i" or a=="u" or a=="e" or a=="o"):
  print("vowel")
else:
  print("consonant")
Buggy python submission (verdict: Runtime Error):
a,b,h=map(int,input().split())
print(int((a+b)*h/2))



Fixed submission:
a=int(input())
b=int(input())
h=int(input())
print(int((a+b)*h/2))

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


Fixed submission:
a=int(input())
b=int(input())
h=int(input())
print(int((a+b)*h/2))

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

Fixed submission:
a=int(input())
b=int(input())
h=int(input())
print(int((a+b)*h/2))
Buggy python submission (verdict: Runtime Error):
hoge_a=input()
hoge_b=input()
hoge_c=input()
tugi="A"
while 1:
  if(tugi=="A"):
    if(hoge_a[0]=="a"):
      tugi="A"
    if(hoge_a[0]=="b"):
      tugi="B"
    if(hoge_a[0]=="c"):
      tugi="C"
    hoge_a=hoge_a[1:]
      
  if(tugi=="B"):
    if(hoge_b[0]=="a"):
      tugi="A"
    if(hoge_b[0]=="b"):
      tugi="B"
    if(hoge_b[0]=="c"):
      tugi="C"
    hoge_b=hoge_b[1:]
      
  if(tugi=="C"):
    if(hoge_c[0]=="a"):
      tugi="A"
    if(hoge_c[0]=="b"):
      tugi="B"
    if(hoge_c[0]=="c"):
      tugi="C"
    hoge_c=hoge_c[1:]
    
  if(len(hoge_a)==0 and tugi=="A"):
    print(tugi)
    break
    
  if(len(hoge_b)==0 and tugi=="B"):
    print(tugi)
    break
    
  if(len(hoge_c)==0 and tugi=="C"):
    print(tugi)
    break

Fixed submission:
hoa=list(input())
hob=list(input())
hoc=list(input())
f="A"

while 1:
  if(f=="A" and len(hoa)==0):
    print(f)
    break
  elif(f=="B" and len(hob)==0):
    print(f)
    break
  elif(f=="C" and len(hoc)==0):
    print(f)
    break
  elif(f=="A"):
    if(hoa[0]=="a"):
      f="A"
      hoa=hoa[1:]
    elif(hoa[0]=="b"):
      f="B"
      hoa=hoa[1:]
    elif(hoa[0]=="c"):
      f="C"
      hoa=hoa[1:]
  elif(f=="B"):
    if(hob[0]=="a"):
      f="A"
      hob=hob[1:]
    elif(hob[0]=="b"):
      f="B"
      hob=hob[1:]
    elif(hob[0]=="c"):
      f="C"
      hob=hob[1:]
  elif(f=="C"):
    if(hoc[0]=="a"):
      f="A"
      hoc=hoc[1:]
    elif(hoc[0]=="b"):
      f="B"
      hoc=hoc[1:]
    elif(hoc[0]=="c"):
      f="C"
      hoc=hoc[1:]

Buggy python submission (verdict: Runtime Error):
hoge_a=input()
hoge_b=input()
hoge_c=input()
tugi="A"
while 1:
  if(tugi=="A"):
    if(len(hoge_a)==0):
      print("A")
      break:
    if(hoge_a[0]=="a"):
      tugi=="A"
    if(hoge_a[0]=="b"):
      tugi=="B"
    if(hoge_a[0]=="c"):
      tugi=="C"
    hoge_a=hoge_a[1:]
      
  if(tugi=="B"):
    if(len(hoge_b)==0):
      print("B")
      break:
    if(hoge_b[0]=="a"):
      tugi=="A"
    if(hoge_b[0]=="b"):
      tugi=="B"
    if(hoge_b[0]=="c"):
      tugi=="C"
    hoge_b=hoge_b[1:]
      
  if(tugi=="C"):
    if(len(hoge_a)==0):
      print("C")
      break:
    if(hoge_c[0]=="a"):
      tugi=="A"
    if(hoge_c[0]=="b"):
      tugi=="B"
    if(hoge_c[0]=="c"):
      tugi=="C"
    hoge_c=hoge_c[1:]

Fixed submission:
hoa=list(input())
hob=list(input())
hoc=list(input())
f="A"

while 1:
  if(f=="A" and len(hoa)==0):
    print(f)
    break
  elif(f=="B" and len(hob)==0):
    print(f)
    break
  elif(f=="C" and len(hoc)==0):
    print(f)
    break
  elif(f=="A"):
    if(hoa[0]=="a"):
      f="A"
      hoa=hoa[1:]
    elif(hoa[0]=="b"):
      f="B"
      hoa=hoa[1:]
    elif(hoa[0]=="c"):
      f="C"
      hoa=hoa[1:]
  elif(f=="B"):
    if(hob[0]=="a"):
      f="A"
      hob=hob[1:]
    elif(hob[0]=="b"):
      f="B"
      hob=hob[1:]
    elif(hob[0]=="c"):
      f="C"
      hob=hob[1:]
  elif(f=="C"):
    if(hoc[0]=="a"):
      f="A"
      hoc=hoc[1:]
    elif(hoc[0]=="b"):
      f="B"
      hoc=hoc[1:]
    elif(hoc[0]=="c"):
      f="C"
      hoc=hoc[1:]
Buggy python submission (verdict: Runtime Error):
r=int(input())
a=3(r*r)


Fixed submission:
r=int(input())
a=3*(r*r)
print(a)

Buggy python submission (verdict: Runtime Error):
r=(int,input())
a=3(r*r)


Fixed submission:
r=int(input())
a=3*(r*r)
print(a)

Buggy python submission (verdict: Runtime Error):
r=map(int,input())
a=3(r*r)


Fixed submission:
r=int(input())
a=3*(r*r)
print(a)

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

Fixed submission:
r=int(input())
a=3*(r*r)
print(a)

Buggy python submission (verdict: Runtime Error):
r=int(input())
a=3(rxr)


Fixed submission:
r=int(input())
a=3*(r*r)
print(a)

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


Fixed submission:
r=int(input())
a=3*(r*r)
print(a)

Buggy python submission (verdict: Runtime Error):
r=map(int,input())
a=3(rxr)


Fixed submission:
r=int(input())
a=3*(r*r)
print(a)

Buggy python submission (verdict: Runtime Error):
r=(int,input())
a=3(rxr)

Fixed submission:
r=int(input())
a=3*(r*r)
print(a)
Buggy python submission (verdict: Runtime Error):
N=int(input())
A=int(input())
B=int(input())
t1=N*A
t2=B
if t1<B:
      tmin=t1
      print(tmin)
else:
      tmin=B
      print(tmin)
      


Fixed submission:
n,a,b=map(int,input().split())
if(n*a>=b):
    print(b)
else:
    print(n*a)

Buggy python submission (verdict: Runtime Error):
N=int(input())
A=int(input())
B=int(input())
t1=N*A
t2=N*B
if t1<t2:
      tmin=t1
      print(tmin)
else:
      tmin=t2
      print(tmin)
      


Fixed submission:
n,a,b=map(int,input().split())
if(n*a>=b):
    print(b)
else:
    print(n*a)

Buggy python submission (verdict: Runtime Error):
N=int(input("enter number of people")
A=int(input("enter the cost of train")
B=int(input("enter the cost of taxi")
t1=N*A
if t1<B:
      tmin=t1
      print("minimum total travel expense",tmin)
else:
      tmin=B
      print("minimum total travel expense",tmin)
      


Fixed submission:
n,a,b=map(int,input().split())
if(n*a>=b):
    print(b)
else:
    print(n*a)

Buggy python submission (verdict: Runtime Error):
N=int(input("enter number of people"))
A=int(input("enter the cost of train"))
B=int(input("enter the cost of taxi"))
t1=N*A
t2=N*B
if t1<t2:
      tmin=t1
      print("minimum total travel expense",tmin)
else:
      tmin=t2
      print("minimum total travel expense",tmin)
      

Fixed submission:
n,a,b=map(int,input().split())
if(n*a>=b):
    print(b)
else:
    print(n*a)

Buggy python submission (verdict: Runtime Error):
N=int(input("enter number of people"))
A=int(input("enter the cost of train"))
B=int(input("enter the cost of taxi"))
t1=N*A
t2=N*B
if t1<t2:
      tmin=t1
      print("minimum total travel expense",tmin)
else:
      tmin=t2
      print("minimum total travel expense",tmin)
      

Fixed submission:
n,a,b=map(int,input().split())
if(n*a>=b):
    print(b)
else:
    print(n*a)

Buggy python submission (verdict: Runtime Error):
N=int(input("enter number of people")
A=int(input("enter the cost of train")
B=int(input("enter the cost of taxi")
t1=N*A
t2=N*B
if t1<t2:
      tmin=t1
      print("minimum total travel expense",tmin)
else:
      tmin=t2
      print("minimum total travel expense",tmin)
      

Fixed submission:
n,a,b=map(int,input().split())
if(n*a>=b):
    print(b)
else:
    print(n*a)

Buggy python submission (verdict: Runtime Error):
N=int(input("enter number of people")
A=int(input("enter the cost of train")
B=int(input("enter the cost of taxi")
t1=N*A
t2=N*B
if t1<t2:
      tmin=t1
      print("minimum total travel expense",tmin)
else:
      tmin=t2
      print("minimum total travel expense",tmin)
      

Fixed submission:
n,a,b=map(int,input().split())
if(n*a>=b):
    print(b)
else:
    print(n*a)
Buggy python submission (verdict: Runtime Error):
N == int(input())
if N//10==9 or N%10==9: print('Yes')
else: print('No')

Fixed submission:
N = int(input())
if N//10==9 or N%10==9: print('Yes')
else: print('No')
Buggy python submission (verdict: Runtime Error):
x,y = map(int, input().split())
if x==2:
  print('No')
elif x==4 or x==6 or x==9 or x==11
  if y==6 or y==9 or y==11:
    print('Yes')
  else: print('No')
else:
  if y==3 or y==5 or y==7 or y==8 or y==10 or y==12:
    print('Yes')
  else: print('No')

Fixed submission:
x,y = map(int, input().split())
if x==2:
  print('No')
elif x==4 or x==6 or x==9 or x==11:
  if y==6 or y==9 or y==11:
    print('Yes')
  else: print('No')
else:
  if y==3 or y==5 or y==7 or y==8 or y==10 or y==12:
    print('Yes')
  else: print('No')
Buggy python submission (verdict: Runtime Error):
n=int(raw_input())
t=map(int,raw_input().split())
total=sum(t)
m=int(raw_input())
for _ in xrange(m):
	p,x=map(int,raw_input())
	print total-t[p-1]+x

Fixed submission:
n=int(raw_input())
t=map(int,raw_input().split())
total=sum(t)
m=int(raw_input())
for _ in xrange(m):
	p,x=map(int,raw_input().split())
	print total-t[p-1]+x

Buggy python submission (verdict: Runtime Error):
n=int(raw_input())
t=map(int,raw_input().split())
total=sum(t)
m=int(raw_input())
for _ in xrange(m):
	p,x=map(int,raw_input())
	print sum-t[p-1]+x

Fixed submission:
n=int(raw_input())
t=map(int,raw_input().split())
total=sum(t)
m=int(raw_input())
for _ in xrange(m):
	p,x=map(int,raw_input().split())
	print total-t[p-1]+x