Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
while True:
 
 sum=0
 n=input()
 i=1
 j=2
 if n==3:sum=2
 else :
  while i<=n:
   while j<i:
    if i%j==0:break
    j+=1
   if i==j:sum+=1
  
   if n%2==0:i+=2
   elif n%2!=0 and i==n-2:i+=1
   else :i+=2
 print sum

Fixed submission:
num=1000000
prime=[1]*1000000
prime[0]=0
prime[1]=0
i=2
ans=0
while i<1000000:
 if prime[i]==1:
  ans+=1
 if i<1000:
  j=i*i
  while j<1000000:
   prime[j]=0
   j+=i
 prime[i]=ans
 i+=1
while True:
 try:
  n=input()
  print prime[n]
 except:
  break

Buggy python submission (verdict: Runtime Error):
num=1000000
prime=[1]*1000000
i=2
ans=0
while i<1000000:
 if prime[i]==1:
  ans+=1
 if i<1000:
  j=i*i
  while j<1000000:
   prime[j]=0
   j+=i
 prime[i]=ans
 i+=1
while True:
 n=input()
 print prime[n]

Fixed submission:
num=1000000
prime=[1]*1000000
prime[0]=0
prime[1]=0
i=2
ans=0
while i<1000000:
 if prime[i]==1:
  ans+=1
 if i<1000:
  j=i*i
  while j<1000000:
   prime[j]=0
   j+=i
 prime[i]=ans
 i+=1
while True:
 try:
  n=input()
  print prime[n]
 except:
  break

Buggy python submission (verdict: Runtime Error):
num=1000000
prime=[1]*1000000
prime[0]=0
prime[1]=0
i=2
ans=0
while i<1000000:
 if prime[i]==1:
  ans+=1
 if i<1000:
  j=i*i
  while j<1000000:
   prime[j]=0
   j+=i
 prime[i]=ans
 i+=1
while True:
 n=input()
 print prime[n]

Fixed submission:
num=1000000
prime=[1]*1000000
prime[0]=0
prime[1]=0
i=2
ans=0
while i<1000000:
 if prime[i]==1:
  ans+=1
 if i<1000:
  j=i*i
  while j<1000000:
   prime[j]=0
   j+=i
 prime[i]=ans
 i+=1
while True:
 try:
  n=input()
  print prime[n]
 except:
  break

Buggy python submission (verdict: Runtime Error):
num=1000000
prime=[1]*1000000
prime[0]=0
prime[1]=0
i=2
ans=0
while i<1000000:
 if prime[i]==1:
  ans+=1
 if i<1000:
  j=i*i
  while j<1000000:
   prime[j]=0
   j+=i
 prime[i]=ans
 i+=1
while True:
 n=input()
 try:
  print prime[n]
 except:
  break

Fixed submission:
num=1000000
prime=[1]*1000000
prime[0]=0
prime[1]=0
i=2
ans=0
while i<1000000:
 if prime[i]==1:
  ans+=1
 if i<1000:
  j=i*i
  while j<1000000:
   prime[j]=0
   j+=i
 prime[i]=ans
 i+=1
while True:
 try:
  n=input()
  print prime[n]
 except:
  break

Buggy python submission (verdict: Runtime Error):
num=1000000
prime=[1]*1000000
prime[0]=0
prime[1]=0
i=2
ans=0
while i<1000000:
 if prime[i]==1:
  ans+=1
 if i<1000:
  j=i*i
  while j<1000000:
   prime[j]=0
   j+=i
 prime[i]=ans
 i+=1
while True:
 try:
  n=input():
  print prime[n]
 except:
  break

Fixed submission:
num=1000000
prime=[1]*1000000
prime[0]=0
prime[1]=0
i=2
ans=0
while i<1000000:
 if prime[i]==1:
  ans+=1
 if i<1000:
  j=i*i
  while j<1000000:
   prime[j]=0
   j+=i
 prime[i]=ans
 i+=1
while True:
 try:
  n=input()
  print prime[n]
 except:
  break
Buggy python submission (verdict: Runtime Error):
n=input()
for i in range(0,n):
 a=input()
 b=input()
 s=str(a+b)
 if(len(s)<=80): print a+b
 else print "overflow"
 

Fixed submission:
n=input()
for i in range(0,n):
 a=input()
 b=input()
 s=str(a+b)
 if(len(s)<=80): print a+b
 else: print "overflow"

Buggy python submission (verdict: Runtime Error):
n=input()
for i in range(0,n):
 a=input()
 b=input()
 s=str(a+b)
 if(len(s)<=80): print str(a+b)
 else print "overflow"
 

Fixed submission:
n=input()
for i in range(0,n):
 a=input()
 b=input()
 s=str(a+b)
 if(len(s)<=80): print a+b
 else: print "overflow"
Buggy python submission (verdict: Runtime Error):
a,b=map(int,raw_input().split())
if a<b:
 print "a<b"
elif a>b
 print "a>b"
else
 print "a==b"

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

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

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

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

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

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

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

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

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

Fixed submission:
a,b,c=map(int,raw_input().split())
if(a>b):
 tmp=a
 a=b
 b=tmp
if(b>c):
 tmp=b
 b=c
 c=tmp
if(a>b):
 tmp=b
 b=a
 a=tmp
print str(a)+" "+str(b)+" "+str(c)
Buggy python submission (verdict: Runtime Error):
i=0
while True :
 x=input()
 i+=1
 print "Case "+str(i)+": "+str(x)
 

Fixed submission:
i=0
while True :
 x=input()
 if x==0:break
 i+=1
 print "Case "+str(i)+": "+str(x)
Buggy python submission (verdict: Runtime Error):
while True:
 a,op,b=raw_input().split()
 if op=="?":break
 if op=="+":print int(a)+int(b)
 if op=="-":print int(a)-int(b)
 if op=="*":print int(a)int(b)
 if op=="/":print int(a)/int(b)

Fixed submission:
while True:
 a,op,b=raw_input().split()
 if op=="?":break
 if op=="+":print int(a)+int(b)
 if op=="-":print int(a)-int(b)
 if op=="*":print int(a)*int(b)
 if op=="/":print int(a)/int(b)
Buggy python submission (verdict: Runtime Error):
import sys
while True:
 h,w=map(int,raw_input().split())
 for i in range(0,h):
  for j in range(0,w):
  
   if (i+j)%2==0:sys.stdout.write("#")
   else :sys.stdout.write(".")
  
  print ""
 print ""

Fixed submission:
import sys
while True:
 h,w=map(int,raw_input().split())
 if h==0 and w==0:break
 for i in range(0,h):
  for j in range(0,w):
  
   if (i+j)%2==0:sys.stdout.write("#")
   else :sys.stdout.write(".")
  
  print ""
 print ""
Buggy python submission (verdict: Runtime Error):
while True:
 n,x=map(int,raw_input().split())
 count=0
 for i in range(1,n+1):
  for j in range(i+1,n+1):
   for k in range(j+1,n+1):
    print str(i)+" "+str(j)+" "+str(k)
    if i+j+k==x:
	 count+=1	 
 print count

Fixed submission:
while True:
 n,x=map(int,raw_input().split())
 if n==0 and x==0:break
 count=0
 for i in range(1,n+1):
  for j in range(i+1,n+1):
   for k in range(j+1,n+1):
    
    if i+j+k==x:
	 count+=1	 
 print count

Buggy python submission (verdict: Runtime Error):
while True:
 n,x=map(int,raw_input().split())
 if n==0 && x==0:break
 count=0
 for i in range(1,n+1):
  for j in range(i+1,n+1):
   for k in range(j+1,n+1):
    print str(i)+" "+str(j)+" "+str(k)
    if i+j+k==x:
	 count+=1	 
 print count

Fixed submission:
while True:
 n,x=map(int,raw_input().split())
 if n==0 and x==0:break
 count=0
 for i in range(1,n+1):
  for j in range(i+1,n+1):
   for k in range(j+1,n+1):
    
    if i+j+k==x:
	 count+=1	 
 print count
Buggy python submission (verdict: Runtime Error):
print eval(raw_input().replace(' ','*')/3.30578

Fixed submission:
print eval(raw_input().replace(' ','*'))/3.305785
Buggy python submission (verdict: Runtime Error):
H, W = map(int, raw_input())
for i in range(H):
    print '#' * W

Fixed submission:
H, W = map(int, raw_input().split())
while H | W != 0:
    for i in range(H):
        print '#' * W
    print ''
    H, W = map(int, raw_input().split())
Buggy python submission (verdict: Runtime Error):
H, W = map(int, raw_input().split())
while H | W != 0:
    for i in range(H):
        if i == 0 or i == H - 1:
            print '#' * W
        else:
            print '#' + '.' * W - 2 + '#'
    print ''
    H, W = map(int, raw_input().split())

Fixed submission:
H, W = map(int, raw_input().split())
while H | W != 0:
    for i in range(H):
        if i == 0 or i == H - 1:
            print '#' * W
        else:
            print '#' + '.' * (W - 2) + '#'
    print ''
    H, W = map(int, raw_input().split())
Buggy python submission (verdict: Runtime Error):
H, W = map(int, raw_input().split())
while H | W != 0:
    for i in range(H):
        s = ''
        for j in range(W):
            s += j % 3 == 0 ? '#' : '.'
        print s
    print ''
    H, W = map(int, raw_input().split())

Fixed submission:
H, W = map(int, raw_input().split())
while H | W != 0:
    for i in range(H):
        s = ''
        for j in range(W):
            s += '#' if (j + i) % 2 == 0 else '.'
        print s
    print ''
    H, W = map(int, raw_input().split())
Buggy python submission (verdict: Runtime Error):
n = input()
array = []
for i in range(1, n + 1):
    if x % 3 == 0 or x % 10 == 3:
        array.append(x)
print str(array).replace('[', '').replace(']', '').replace(',', '')

Fixed submission:
n = input()
array = []
i = 1
while i <= n:
    x = i
    if x % 3 == 0:
        array.append(i)
    else:
        while x != 0:
            if x % 10 == 3:
                array.append(i)
                break
            x /= 10
    i += 1
print str(array).replace('[', ' ').replace(']', '').replace(',', '')

Buggy python submission (verdict: Time Limit Exceeded):
n = input()
array = []
x = 1
while x <= n:
    if x % 3 == 0:
        array.append(x)
    else:
        while x != 0:
            if x % 10 == 3:
                array.append(x)
                break
            x /= 10
    x += 1
print str(array).replace('[', ' ').replace(']', '').replace(',', '')

Fixed submission:
n = input()
array = []
i = 1
while i <= n:
    x = i
    if x % 3 == 0:
        array.append(i)
    else:
        while x != 0:
            if x % 10 == 3:
                array.append(i)
                break
            x /= 10
    i += 1
print str(array).replace('[', ' ').replace(']', '').replace(',', '')

Buggy python submission (verdict: Time Limit Exceeded):
n = input()
array = []
x = 1
while x <= n:
    if x % 3 == 0:
        array.append(x)
    else:
        while x != 0:
            if x % 10 == 3:
                array.append(x)
                break
            x /= 10
    x += 1
print str(array).replace('[', ' ').replace(']', '').replace(',', '')

Fixed submission:
n = input()
array = []
i = 1
while i <= n:
    x = i
    if x % 3 == 0:
        array.append(i)
    else:
        while x != 0:
            if x % 10 == 3:
                array.append(i)
                break
            x /= 10
    i += 1
print str(array).replace('[', ' ').replace(']', '').replace(',', '')
Buggy python submission (verdict: Runtime Error):
 while True:
    x, y = sorted(map(int, raw_input().split()))
    if x == y == 0:
        break
    print x,y
    

Fixed submission:
while True:
    x, y = sorted(map(int, raw_input().split()))
    if x == y == 0:
        break
    print x,y
Buggy python submission (verdict: Runtime Error):
 while True:
    H, W = map(int, raw_input().split())
    if H == W == 0: break
    print '#'*W
    for i in range(H-2):
        print '#'+'.'*(W-2)+'#'
    print '#'*W+'\n'

Fixed submission:
while 1:
    H, W = map(int,raw_input().split())
    if H + W == 0: break
    print ('#' * W)
    for h in range(H-2):
        print ('#' + '.' * (W - 2) + '#')
    print ('#' * W + '\n')
Buggy python submission (verdict: Runtime Error):
r = int(input())
import math
pi = math.pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))


Fixed submission:
r = float(input())
from math import pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))

Buggy python submission (verdict: Runtime Error):
r = int(input())
import math
pi = math.pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))


Fixed submission:
r = float(input())
from math import pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))

Buggy python submission (verdict: Runtime Error):
r = int(input())
import math
pi = math.pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))


Fixed submission:
r = float(input())
from math import pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))

Buggy python submission (verdict: Runtime Error):
r = int(input())
pi = math.pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))


Fixed submission:
r = float(input())
from math import pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))

Buggy python submission (verdict: Runtime Error):
r = int(input())
from math import pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))


Fixed submission:
r = float(input())
from math import pi
s = r*r*pi
l = 2*r*pi
print("{:.6f}".format(s),"{:.6f}".format(l))
Buggy python submission (verdict: Runtime Error):
#include <iostream>
using namespace std;
int main(void){
   int H,W;
   int i,j;
   while(1){
    cin >> H,cin >> W;
    i=0;
    j=0;
    for(i=0;i<H;i++){
        for(j=0;j<W;j++){
            cout << "#";
            }
        cout << endl;
       }
       cout << endl;
       if(H==0 && W==0)
        break;
   }
   return 0;
}



Fixed submission:
lines = []
colums = []

while True:
  H,W = map(int,input().split())
  if H == 0 and W == 0:
    break
  lines.append(H)
  colums.append(W)

for H,W in zip(lines,colums):
  for i in range(H):
    for j in range(W):
      print("#",end="")
    print("\n",end="")
  print("\n",end="")

Buggy python submission (verdict: Runtime Error):
#include <iostream>
using namespace std;
int main(void){
   int H,W;
   int i,j;
   while(1){
    cin >> H,cin >> W;
    i=0;
    j=0;
    for(i=0;i<H;i++){
        for(j=0;j<W;j++){
            cout << "#";
            }
        cout << endl;
       }
       cout << endl;
       if(H==0 && W==0)
        break;
   }
   return 0;
}



Fixed submission:
lines = []
colums = []

while True:
  H,W = map(int,input().split())
  if H == 0 and W == 0:
    break
  lines.append(H)
  colums.append(W)

for H,W in zip(lines,colums):
  for i in range(H):
    for j in range(W):
      print("#",end="")
    print("\n",end="")
  print("\n",end="")

Buggy python submission (verdict: Runtime Error):
#include <iostream>
using namespace std;
int main(void){
   int H,W;
   int i,j;
   while(1){
    cin >> H;
    cin >> W;
    i=0;
    j=0;
    for(i=0;i<H;i++){
        for(j=0;j<W;j++){
            cout << '#';
            }
        cout << endl;
       }
       cout << endl;
       if(H==0&&W==0)
       break;
    }
   return 0;
}



Fixed submission:
lines = []
colums = []

while True:
  H,W = map(int,input().split())
  if H == 0 and W == 0:
    break
  lines.append(H)
  colums.append(W)

for H,W in zip(lines,colums):
  for i in range(H):
    for j in range(W):
      print("#",end="")
    print("\n",end="")
  print("\n",end="")
Buggy python submission (verdict: Runtime Error):
#include <iostream>
using namespace std;
int main(void){
    int n,i,j;
    
    cin >> n;
    int a[n];
    
    for(i=0;i<n;i++){
        cin >> a[i];
    }
    

    
    for(j=n-1;j>=0;j--){
        if(j==0)
            cout << a[j];
        else
            cout << a[j] << " ";
    }
    
}



Fixed submission:
n = int(input())
numbers = list(map(int,input().split()))
for i in range(n):
  if i==0:
    print(numbers[n-1],end="")
  else:
    print("",numbers[n-1-i],end="")
print()

Buggy python submission (verdict: Runtime Error):
#include <iostream>
using namespace std;
int main(void){
    int n,i,j;
    
    cin >> n;
    int a[n];
    
    for(i=0;i<n;i++){
        cin >> a[i];
    }
    

    
    for(j=n-1;j>=0;j--){
        if(j==0)
            cout << a[j] << endl;
        else
            cout << a[j] << " ";
    }
    
}



Fixed submission:
n = int(input())
numbers = list(map(int,input().split()))
for i in range(n):
  if i==0:
    print(numbers[n-1],end="")
  else:
    print("",numbers[n-1-i],end="")
print()
Buggy python submission (verdict: Runtime Error):
while True:
    st=[]
    n=input()
    if n=="":
      break
    st += n.lower()
    char = "abcdefghijklmnopqrstuvwxyz"

    for i in range(len(char)):
      print(char[i],":",st.count(char[i]))
    


Fixed submission:
st=[]

while True:
  try:
    n=input()
    if n=="":
      break
    st += n.lower()
  except:
    break
   
char = "abcdefghijklmnopqrstuvwxyz"
for i in range(len(char)):
  print(char[i],":",st.count(char[i]))

Buggy python submission (verdict: Runtime Error):
while True:
  st=[]
  n=input()
  
  if n=="":
    break
    
  st += n.lower()
  char = "abcdefghijklmnopqrstuvwxyz"

  for i in range(len(char)):
    print(char[i],":",st.count(char[i]))


Fixed submission:
st=[]

while True:
  try:
    n=input()
    if n=="":
      break
    st += n.lower()
  except:
    break
   
char = "abcdefghijklmnopqrstuvwxyz"
for i in range(len(char)):
  print(char[i],":",st.count(char[i]))

Buggy python submission (verdict: Runtime Error):
st=[]
while True:
  n=input()
  
  if n=="":
    break
    
  st += n.lower()
  char = "abcdefghijklmnopqrstuvwxyz"

  for i in range(len(char)):
    print(char[i],":",st.count(char[i]))


Fixed submission:
st=[]

while True:
  try:
    n=input()
    if n=="":
      break
    st += n.lower()
  except:
    break
   
char = "abcdefghijklmnopqrstuvwxyz"
for i in range(len(char)):
  print(char[i],":",st.count(char[i]))
Buggy python submission (verdict: Runtime Error):
i = 0
while True :
  x = int(input())
  if(x is none) :
    break
  else :
    i += 1
    print("Case i:", x)
    


Fixed submission:
i = 0

while True :
    x = int(input())
    if x == 0 :
        break
    else :
        i += 1
        print("Case ", i, ": ", x, sep = "")

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


Fixed submission:
i = 0

while True :
    x = int(input())
    if x == 0 :
        break
    else :
        i += 1
        print("Case ", i, ": ", x, sep = "")

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


Fixed submission:
i = 0

while True :
    x = int(input())
    if x == 0 :
        break
    else :
        i += 1
        print("Case ", i, ": ", x, sep = "")

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


Fixed submission:
i = 0

while True :
    x = int(input())
    if x == 0 :
        break
    else :
        i += 1
        print("Case ", i, ": ", x, sep = "")
Buggy python submission (verdict: Runtime Error):
a, b. c = map(int, input().split())
i = a
j = 0
while(a <= i and i <= b) :
  if(c % i == 0) :
    j += 0
  else :
    pass
print(j)



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

for i in range(a, b + 1) :
    if c % i == 0 :
        s += 1
        
print(s)

Buggy python submission (verdict: Runtime Error):
a, b. c = map(int, input().split())
i = a
j = 0
if(a <= i and i <= b) :
  if(c % i == 0) :
    j += 0
  else :
    pass
else :
  print(j)



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

for i in range(a, b + 1) :
    if c % i == 0 :
        s += 1
        
print(s)

Buggy python submission (verdict: Runtime Error):
a, b. c = map(int, input().split())
i = a
j = 0
if(a <= i and i <= b) :
  if(c % i == 0) :
    j += 1
  else :
    pass
else :
  print(j)



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

for i in range(a, b + 1) :
    if c % i == 0 :
        s += 1
        
print(s)

Buggy python submission (verdict: Runtime Error):
a, b. c = map(int, input().split())
i = a
j = 0
if(a <= i and i <= b) :
  if(c % i == 0) :
    i += 1
    j += 1
  else :
    i += 1
else :
  print(j)



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

for i in range(a, b + 1) :
    if c % i == 0 :
        s += 1
        
print(s)

Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
i = a
j = 0
if(a <= i and i <= b) :
  if(c % i = 0) :
    i += 1
    j += 1
  else :
    i += 1
else :
  print(j)



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

for i in range(a, b + 1) :
    if c % i == 0 :
        s += 1
        
print(s)
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
s = r ** 2 * math.pi
l = 2 * r * math.pi
print("{:.5f}".format(s), "{:.5f}".format(l))


Fixed submission:
import math

r = float(input())

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

print(f"{s:.6f} {l:.6f}")

Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
s = r ** 2 * math.pi
l = 2 * r * math.pi
print("{:.6f}".format(s), "{:.6f}".format(l))



Fixed submission:
import math

r = float(input())

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

print(f"{s:.6f} {l:.6f}")
Buggy python submission (verdict: Time Limit Exceeded):
a, op, b = input().split()
a = int(a)
b = int(b)
while True:
  if(op is '?') :
    break
  elif(op is "+") :
    x = a + b
  elif(op is "-") :
    x = a - b
  elif(op is "*") :
    x = a * b
  else :
    x = a // b


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

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

men = a*b
hen = 2*(a+b)

print(men,hen,sep=" ")

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

men = a*b
hen =(a+b)*2

print(men,hen)

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

men = a*b
hen = 2*(a+b)

print(men,hen,sep=" ")

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

men = a*b
hen = (a+b)*2

print(int(men),int(hen))

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

men = a*b
hen = 2*(a+b)

print(men,hen,sep=" ")

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

men = a*b
hen = 2*(a+b)

print(men+" "+hen)


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

men = a*b
hen = 2*(a+b)

print(men,hen,sep=" ")
Buggy python submission (verdict: Runtime Error):
in_sec = int(input())

sec = in_sec % 60
min = (in_sec // 60) % 60
hour = (in_sec // 3600 )

print(hour,min,sec,sep(":"))

Fixed submission:
time = int(input())

h = int(time/ 3600)
m = int((time%3600)/60)
s = int((time%3600)%60)

print(h,m,s,sep=':')
Buggy python submission (verdict: Runtime Error):
a = map(int,input().split())

a.sort()

print(a[0],a[1],a[2])

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

a.sort()

print(a[0],a[1],a[2])
Buggy python submission (verdict: Runtime Error):
while True:
    input = list(map(int,list(input())))
    if input == [0]:
        break
    else:
        print(sum(input))

Fixed submission:
while True:
    i = list(map(int,list(input())))
    if i == [0]:
        break
    else:
        print(sum(i))
Buggy python submission (verdict: Runtime Error):
import sys

inp = sys.stdin()
counter = {}

for text in inp:
    for a in text:
        a = a.lower()
        counter[a] = counter.get(a,0) + 1

for x in range(26):
    a = chr(ord('a')+x)
    print("{0} : {1}".format(a,counter.get(a,0)),sep='')


Fixed submission:
import sys

inp = sys.stdin
counter = {}

for text in inp:
    for a in text:
        a = a.lower()
        counter[a] = counter.get(a,0) + 1

for x in range(26):
    a = chr(ord('a')+x)
    print("{0} : {1}".format(a,counter.get(a,0)),sep='')

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

inp = sys.stdin()
counter = {}

for text in inp:
    for a in text:
        a = a.lower()
        counter[a] = counter.get(a,0) + 1

for x in range(26):
    a = chr(ord('a')+x)
    print("{0} : {1}".format(a,counter.get(a,0)),sep='')


Fixed submission:
import sys

inp = sys.stdin
counter = {}

for text in inp:
    for a in text:
        a = a.lower()
        counter[a] = counter.get(a,0) + 1

for x in range(26):
    a = chr(ord('a')+x)
    print("{0} : {1}".format(a,counter.get(a,0)),sep='')