Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
lst=input().split()
lst_i=list(map(lambda i : int(i),lst))
x_1=lst_i[0]
y_1=lst_i[1]
x_2=lst_i[2]
y_2=lst_i[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)


Fixed submission:
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Buggy python submission (verdict: Runtime Error):
lst=input().split()
x_1=int(lst[0])
y_1=int(lst[1])
x_2=int(lst[2])
y_2=int(lst[3])
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)


Fixed submission:
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Buggy python submission (verdict: Runtime Error):
lst=input().split()
x_1=lst[0]
y_1=int(lst[1])
x_2=int(lst[2])
y_2=int(lst[3])
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)


Fixed submission:
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Buggy python submission (verdict: Runtime Error):
lst=input().split()
x_1=lst[0]
y_1=lst[1]
x_2=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)


Fixed submission:
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Buggy python submission (verdict: Runtime Error):
lst=input().split()
x_1=int(lst[0])
y_1=int(lst[1])
x_2=int(lst[2])
y_2=int(lst[3])
dis=((x_1-x_2)**2+(y_1-y_2)**2)**(1/2)
print(dis)



Fixed submission:
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Buggy python submission (verdict: Runtime Error):
lst=input().split()
x_1=lst[0]
y_1=lst[1]
x_2=lst[2]
y_2=lst[3]
dis=((x_1-x_2)**2+(y_1-y_2)**2)**(1/2)
print(dis)



Fixed submission:
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Buggy python submission (verdict: Runtime Error):
lst=input().split()
lst=list(map(lambda i:int(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-x_2)**2+(y_1-y_2)**2)**(1/2)
print(dis)



Fixed submission:
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Buggy python submission (verdict: Runtime Error):
lst=input().split()
x=int(lst[0])



Fixed submission:
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Buggy python submission (verdict: Runtime Error):
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-x_2)**2+(y_1-y_2)**2)**(1/2)
print("{.:8}".format(dis))




Fixed submission:
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)
Buggy python submission (verdict: Runtime Error):
lst=input().split()
lst=list(map(lambda i:int(i),lst))
a,b,C=lst[0],lst[1],lst[2]
S=(1/2)*a*b*math.sin(math.radians(C))



Fixed submission:
import math
lst=input().split()
lst=list(map(lambda i:int(i),lst))
a,b,C=lst[0],lst[1],lst[2]
S=(1/2)*a*b*math.sin(math.radians(C))
h=(2/a)*S
c=(a**2+b**2-2*a*b*math.cos(math.radians(C)))**(1/2)
L=a+b+c
print(S)
print(L)
print(h)
Buggy python submission (verdict: Runtime Error):
import numpy as np


Fixed submission:
from statistics import pstdev
while input()!="0":
    lst=map(int,input().split())
    print(pstdev(lst))

Buggy python submission (verdict: Runtime Error):
import Numpy as np


Fixed submission:
from statistics import pstdev
while input()!="0":
    lst=map(int,input().split())
    print(pstdev(lst))

Buggy python submission (verdict: Runtime Error):
from statistics import mean, median,variance,stdev
data=[]
while True:
    data.append(input().split())
    if ["0"] in data:
        break
data=data[:-1]
data_i=[]
for i in data:
    data_i.append(list(map(lambda i:int(i),i)))
for i in data_i:
    if len(i)==1:
        pass
    else:
        print(std(i))


Fixed submission:
from statistics import pstdev
while input()!="0":
    lst=map(int,input().split())
    print(pstdev(lst))

Buggy python submission (verdict: Runtime Error):
import numpy as np



Fixed submission:
from statistics import pstdev
while input()!="0":
    lst=map(int,input().split())
    print(pstdev(lst))

Buggy python submission (verdict: Runtime Error):
from statistics import mean, median,variance,stdev
data=[]
while True:
    data.append(input().split())
    if ["0"] in data:
        break
data=data[:-1]
data_i=[]
def a():
    
for i in data:
    data_i.append(list(map(lambda i:int(i),i)))
for i in data_i:
    if len(i)==1:
        pass
    else:
        print(statistics.pstdev(i))



Fixed submission:
from statistics import pstdev
while input()!="0":
    lst=map(int,input().split())
    print(pstdev(lst))

Buggy python submission (verdict: Runtime Error):
import statistics
data=[]
while True:
    data.append(input().split())
    if ["0"] in data:
        break
data=data[:-1]
data_i=[]
def a():
    
for i in data:
    data_i.append(list(map(lambda i:int(i),i)))
for i in data_i:
    if len(i)==1:
        pass
    else:
        print(statistics.pstdev(i))



Fixed submission:
from statistics import pstdev
while input()!="0":
    lst=map(int,input().split())
    print(pstdev(lst))
Buggy python submission (verdict: Runtime Error):
a_b=input().split()
print(int(a_b[0])*int(a_b[1]) int(a_b[0]*2+int(a_b[1]*2)))


Fixed submission:
a_b=input().split()
a=int(a_b[0])
b=int(a_b[1])
print(str(a*b)+" "+str((a+b)*2))

Buggy python submission (verdict: Runtime Error):
a_b=input().split()
print(str(int(a_b[0])*int(a_b[1]))+" "+str(int(a_b[0]*2+int(a_b[1]*2))))


Fixed submission:
a_b=input().split()
a=int(a_b[0])
b=int(a_b[1])
print(str(a*b)+" "+str((a+b)*2))

Buggy python submission (verdict: Runtime Error):
a_b=input().split()
a=int(a_b[0])
b=int(a_b[1])
print(a*b (a+b)*2)


Fixed submission:
a_b=input().split()
a=int(a_b[0])
b=int(a_b[1])
print(str(a*b)+" "+str((a+b)*2))
Buggy python submission (verdict: Runtime Error):
s=input().split()
a=int(s[0])
b=int(s[1])
c=int(s[2])
num=[a,b,c]
num.sort()
print(str(num[0])+" "+str(num[1]+" "+str(num[2])))


Fixed submission:
s=input().split()
a=int(s[0])
b=int(s[1])
c=int(s[2])
num=[a,b,c]
num.sort()
print(str(num[0])+" "+str(num[1])+" "+str(num[2]))

Buggy python submission (verdict: Runtime Error):
s=input().split()
a=int(s[0])
b=int(s[1])
c=int(s[2])
num=[a,b,c]
num.sort()
print(str(num[0])+" "+str(num[1])+" "+str(num[2])))


Fixed submission:
s=input().split()
a=int(s[0])
b=int(s[1])
c=int(s[2])
num=[a,b,c]
num.sort()
print(str(num[0])+" "+str(num[1])+" "+str(num[2]))
Buggy python submission (verdict: Runtime Error):
i=1
while int(input())!=0:
   print("Case "+str(i):+" "+str(input())) 


Fixed submission:
i=1
while True:
    x=int(input())
    if x==0:
        break
    print("Case {}: {}".format(i,x))
    i+=1

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


Fixed submission:
i=1
while True:
    x=int(input())
    if x==0:
        break
    print("Case {}: {}".format(i,x))
    i+=1

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


Fixed submission:
i=1
while True:
    x=int(input())
    if x==0:
        break
    print("Case {}: {}".format(i,x))
    i+=1

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


Fixed submission:
i=1
while True:
    x=int(input())
    if x==0:
        break
    print("Case {}: {}".format(i,x))
    i+=1
Buggy python submission (verdict: Runtime Error):
while True:
    str=input().split
    int=[int(s) for s in str]
    if int[0]==0 and int[1]==0:
        break
    if int[0]<int[1]:
        print("{} {}".format(int[0],int[1]))
    if int[0]>int[1]:
        print("{} {}".format(int[1],int[0]))


Fixed submission:
while True:
    x=input().split()
    y=[int(x[0]),int(x[1])]
    if y[0]==0 and y[1]==0:
        break
    elif y[0]<y[1]:
        print("{} {}".format(y[0],y[1]))
    elif y[0]>y[1]:
        print("{} {}".format(y[1],y[0]))
    else:
        print("{} {}".format(y[0],y[1]))

Buggy python submission (verdict: Runtime Error):
while True:
    str_=input().split
    int_=[int(s) for s in str_]
    if int_[0]==0 and int_[1]==0:
        break
    if int_[0]<int_[1]:
        print("{} {}".format(int_[0],int_[1]))
    if int_[0]>int_[1]:
        print("{} {}".format(int_[1],int_[0]))


Fixed submission:
while True:
    x=input().split()
    y=[int(x[0]),int(x[1])]
    if y[0]==0 and y[1]==0:
        break
    elif y[0]<y[1]:
        print("{} {}".format(y[0],y[1]))
    elif y[0]>y[1]:
        print("{} {}".format(y[1],y[0]))
    else:
        print("{} {}".format(y[0],y[1]))

Buggy python submission (verdict: Runtime Error):
while True:
    x=input().split
    y=[int(s) for s in x]
    if y[0]==0 and y[1]==0:
        break
    if y[0]<y[1]:
        print("{} {}".format(y[0],y[1]))
    if y[0]>y[1]:
        print("{} {}".format(y[1],y[0]))


Fixed submission:
while True:
    x=input().split()
    y=[int(x[0]),int(x[1])]
    if y[0]==0 and y[1]==0:
        break
    elif y[0]<y[1]:
        print("{} {}".format(y[0],y[1]))
    elif y[0]>y[1]:
        print("{} {}".format(y[1],y[0]))
    else:
        print("{} {}".format(y[0],y[1]))

Buggy python submission (verdict: Runtime Error):
while True:
    x=input().split
    y=[int(x[0]),int(x[1])]
    if y[0]==0 and y[1]==0:
        break
    if y[0]<y[1]:
        print("{} {}".format(y[0],y[1]))
    if y[0]>y[1]:
        print("{} {}".format(y[1],y[0]))


Fixed submission:
while True:
    x=input().split()
    y=[int(x[0]),int(x[1])]
    if y[0]==0 and y[1]==0:
        break
    elif y[0]<y[1]:
        print("{} {}".format(y[0],y[1]))
    elif y[0]>y[1]:
        print("{} {}".format(y[1],y[0]))
    else:
        print("{} {}".format(y[0],y[1]))

Buggy python submission (verdict: Runtime Error):
while True:
    x=input().split
    y=[int(x[0]),int(x[1])]
    if y[0]==0 and y[1]==0:
        break
    elif y[0]<y[1]:
        print("{} {}".format(y[0],y[1]))
    elif y[0]>y[1]:
        print("{} {}".format(y[1],y[0]))


Fixed submission:
while True:
    x=input().split()
    y=[int(x[0]),int(x[1])]
    if y[0]==0 and y[1]==0:
        break
    elif y[0]<y[1]:
        print("{} {}".format(y[0],y[1]))
    elif y[0]>y[1]:
        print("{} {}".format(y[1],y[0]))
    else:
        print("{} {}".format(y[0],y[1]))
Buggy python submission (verdict: Runtime Error):
s=input().split()
a,b=int(s[0]),int(s[1])
print("{} {} {}".format(a//b,a%b,a/b)


Fixed submission:
a,b=map(int,input().split())
print(a//b,a%b,"{:.5f}".format(a/b))
Buggy python submission (verdict: Runtime Error):
r=int(input())
print("{} {}".format(2*r*pi,r*r*pi))


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

Buggy python submission (verdict: Runtime Error):
r=input()
print("{} {}".format(2*r*pi,r*r*pi))


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

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


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

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


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

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


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

Buggy python submission (verdict: Runtime Error):
import math
pi=round(math.pi,7)
r=input()
print("{} {}".format(2*r*pi,r*r*pi))


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

Buggy python submission (verdict: Runtime Error):
import math
pi=round(math.pi,7)
r=input()
print(2*r*pi r*r*pi)


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

Buggy python submission (verdict: Runtime Error):
import math
pi=round(math.pi,7)
length=str(round(r*2*pi,6))
area=str(round(r**2*pi,6))
print("{} {}".format(length,area))


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

Buggy python submission (verdict: Runtime Error):
import math
r=input()
pi=round(math.pi,7)
length=str(round(r*2*pi,6))
area=str(round(r**2*pi,6))
print("{} {}".format(length,area))


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

Buggy python submission (verdict: Runtime Error):
import math
r=int(input())
pi=round(math.pi,7)
length=str(round(r*2*pi,6))
area=str(round(r**2*pi,6))
print("{} {}".format(length,area))


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

Buggy python submission (verdict: Runtime Error):
r=int(input())
import math
pi=round(math.pi,7)
length=str(round(r*2*pi,6))
area=str(round(r**2*pi,6))
print("{} {}".format(length,area))


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

Buggy python submission (verdict: Runtime Error):
r=float(input())
import math
pi=round(math.pi,7)
length=round(r*2*pi,6)
area=round(r**2*pi,6)
print(float(length)+" "+float(area))


Fixed submission:
import math
pi=math.pi
r=float(input())
print("{:.5f} {:.5f}".format(r*r*pi,2*r*pi))
Buggy python submission (verdict: Runtime Error):
import math
while True:
    s=input().split()
    if s[1]==?:
        break
    if s[1]==+:
        print(int(s[0])+int(s[2]))
    if s[1]==-:
        print(int(s[0])-int(s[2]))
    if s[1]==*:
        print(int(s[0])*int(s[2]))
    if s[1]==/:
        print(math.floor(int(s[0])/int(s[2])))


Fixed submission:
import math
while True:
    s=input().split()
    if s[1]=="?":
        break
    elif s[1]=="+":
        print(int(s[0])+int(s[2]))
    elif s[1]=="-":
        print(int(s[0])-int(s[2]))
    elif s[1]=="*":
        print(int(s[0])*int(s[2]))
    elif s[1]=="/":
        print(math.floor(int(s[0])/int(s[2])))

Buggy python submission (verdict: Runtime Error):
import math
while True:
    s=input().split()
    if s[1]==?:
        break
    elif s[1]==+:
        print(int(s[0])+int(s[2]))
    elif s[1]==-:
        print(int(s[0])-int(s[2]))
    elif s[1]==*:
        print(int(s[0])*int(s[2]))
    elif s[1]==/:
        print(math.floor(int(s[0])/int(s[2])))


Fixed submission:
import math
while True:
    s=input().split()
    if s[1]=="?":
        break
    elif s[1]=="+":
        print(int(s[0])+int(s[2]))
    elif s[1]=="-":
        print(int(s[0])-int(s[2]))
    elif s[1]=="*":
        print(int(s[0])*int(s[2]))
    elif s[1]=="/":
        print(math.floor(int(s[0])/int(s[2])))

Buggy python submission (verdict: Runtime Error):
import math
while True:
    s=input().split()
    if s[0]==0:
        break
    elif s[1]==+:
        print(int(s[0])+int(s[2]))
    elif s[1]==-:
        print(int(s[0])-int(s[2]))
    elif s[1]==*:
        print(int(s[0])*int(s[2]))
    elif s[1]==/:
        print(math.floor(int(s[0])/int(s[2])))


Fixed submission:
import math
while True:
    s=input().split()
    if s[1]=="?":
        break
    elif s[1]=="+":
        print(int(s[0])+int(s[2]))
    elif s[1]=="-":
        print(int(s[0])-int(s[2]))
    elif s[1]=="*":
        print(int(s[0])*int(s[2]))
    elif s[1]=="/":
        print(math.floor(int(s[0])/int(s[2])))

Buggy python submission (verdict: Runtime Error):
import math
while True:
    s=input().split()
    if s[0]=="?":
        break
    elif s[1]=="+":
        print(int(s[0])+int(s[2]))
    elif s[1]=="-":
        print(int(s[0])-int(s[2]))
    elif s[1]=="*":
        print(int(s[0])*int(s[2]))
    elif s[1]=="/":
        print(math.floor(int(s[0])/int(s[2])))


Fixed submission:
import math
while True:
    s=input().split()
    if s[1]=="?":
        break
    elif s[1]=="+":
        print(int(s[0])+int(s[2]))
    elif s[1]=="-":
        print(int(s[0])-int(s[2]))
    elif s[1]=="*":
        print(int(s[0])*int(s[2]))
    elif s[1]=="/":
        print(math.floor(int(s[0])/int(s[2])))
Buggy python submission (verdict: Runtime Error):
while True:
    s=input().split()
    t=[int(s) for i in s]
    if t[0]==0:
        break
    else:
        for i in range(t[0]):
            print("#"*t[1])
        |


Fixed submission:
while True:
    s=input().split()
    t=[int(l) for l in s]
    if t[0]==0:
        break
    else:
        for i in range(t[0]):
            print("#"*t[1])
        print()

Buggy python submission (verdict: Runtime Error):
while True:
    s=input().split()
    t=[int(s) for i in s]
    if t[0]==0:
        break
    else:
        for i in range(t[0]):
            print("#"*t[1])
            print(" ")
    


Fixed submission:
while True:
    s=input().split()
    t=[int(l) for l in s]
    if t[0]==0:
        break
    else:
        for i in range(t[0]):
            print("#"*t[1])
        print()
Buggy python submission (verdict: Time Limit Exceeded):
input=input().split()
s=[int(s) for s in input]
while True:
    if s[0]==0:
        break
    else:
        print("#"*s[1])
        for i in range(s[0]-2):
            print("#"+"."*(s[1]-2)+"#")
        print("#"*s[1])
        print()


Fixed submission:
while True:
    s=input().split()
    t=[int(i) for i in s]
    H=t[0]
    W=t[1]
    if H==0:
        break
    else:
        print("#"*W)
        for i in range(H-2):
            print("#"+"."*(W-2)+"#")
        print("#"*W)
        print()

Buggy python submission (verdict: Time Limit Exceeded):
input=input().split()
s=[int(s) for s in input]
while True:
    if s[0]==0:
        break
    else:
        print("#"*s[1])
        for i in range(s[0]-2):
            print("#"+"."*(s[1]-2)+"#")
        print("#"*s[1])
        print()


Fixed submission:
while True:
    s=input().split()
    t=[int(i) for i in s]
    H=t[0]
    W=t[1]
    if H==0:
        break
    else:
        print("#"*W)
        for i in range(H-2):
            print("#"+"."*(W-2)+"#")
        print("#"*W)
        print()

Buggy python submission (verdict: Time Limit Exceeded):
inpu=input().split()
s=[int(s) for s in inpu]
while True:
    if s[0]==0:
        break
    else:
        print("#"*s[1])
        for i in range(s[0]-2):
            print("#"+"."*(s[1]-2)+"#")
        print("#"*s[1])
        print()


Fixed submission:
while True:
    s=input().split()
    t=[int(i) for i in s]
    H=t[0]
    W=t[1]
    if H==0:
        break
    else:
        print("#"*W)
        for i in range(H-2):
            print("#"+"."*(W-2)+"#")
        print("#"*W)
        print()

Buggy python submission (verdict: Time Limit Exceeded):
s=input().split()
t=[int(i) for i in s]
while True:
    if t[0]==0:
        break
    else:
        print("#"*t[1])
        for i in range(t[0]-2):
            print("#"+"."*(t[1]-2)+"#")
        print("#"*t[1])
        print()


Fixed submission:
while True:
    s=input().split()
    t=[int(i) for i in s]
    H=t[0]
    W=t[1]
    if H==0:
        break
    else:
        print("#"*W)
        for i in range(H-2):
            print("#"+"."*(W-2)+"#")
        print("#"*W)
        print()

Buggy python submission (verdict: Time Limit Exceeded):
s=input().split()
t=[int(i) for i in s]
H=t[0]
W=t[1]
while True:
    if H==0:
        break
    else:
        print("#"*W)
        for i in range(H-2):
            print("#"+"."*(W-2)+"#")
        print("#"*W)
        print()


Fixed submission:
while True:
    s=input().split()
    t=[int(i) for i in s]
    H=t[0]
    W=t[1]
    if H==0:
        break
    else:
        print("#"*W)
        for i in range(H-2):
            print("#"+"."*(W-2)+"#")
        print("#"*W)
        print()
Buggy python submission (verdict: Runtime Error):
while True:
    input=input().split()
    H=int(input[0])
    W=int(input[1])
    if H==0:
        break
    for i in range(1,H+1):
        if i%2!=0:
            if W%2==0:
                print("#."*(W/2))
            if W%2!=0:
                print("#."*(W/2)+".")
        if i%2==0:
            if W%2==0:
                print(".#"*(W/2))
            if W%2!=0:
                print(".#"*(W/2)+".")
    print()


Fixed submission:
while True:
    s=input().split()
    h=int(s[0])
    w=int(s[1])
    if h==0:
        break
    for i in range(1,h+1):
        if i%2==1:
            if w%2==0:
                print("#."*(w//2))
            else:
                print("#."*(w//2)+"#")
        else:
            if w%2==0:
                print(".#"*(w//2))
            else:
                print(".#"*(w//2)+".")
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    input=input().split()
    H=int(input[0])
    W=int(input[1])
    if H==0:
        break
    for i in range(1,H+1):
        if i%2!=0:
            if W%2==0:
                print("#."*(W//2))
            if W%2!=0:
                print("#."*(W//2)+".")
        if i%2==0:
            if W%2==0:
                print(".#"*(W//2))
            if W%2!=0:
                print(".#"*(W//2)+".")
    print()


Fixed submission:
while True:
    s=input().split()
    h=int(s[0])
    w=int(s[1])
    if h==0:
        break
    for i in range(1,h+1):
        if i%2==1:
            if w%2==0:
                print("#."*(w//2))
            else:
                print("#."*(w//2)+"#")
        else:
            if w%2==0:
                print(".#"*(w//2))
            else:
                print(".#"*(w//2)+".")
    print()
Buggy python submission (verdict: Runtime Error):
A=int(input())
s=input().split()
i=[int(q) for q in s]
list=[]
i.reverse()
for b in range(A):
    list.append(b)
print(for h in list)



Fixed submission:
N=int(input())
s_str=input().split()
s_int=[int(s) for s in s_str]
list=[]
s_int.reverse()
for i in s_int:
    list.append(i)
print(*list)

Buggy python submission (verdict: Runtime Error):
N=int(input())
s_str=input().split()
s_int=[int(s) for s in s_str]
list=[]
s_int.reverse()
for i in s_int:
    list.append(i)
for i in list:
    a=i,end=" "
print(a[:-2])



Fixed submission:
N=int(input())
s_str=input().split()
s_int=[int(s) for s in s_str]
list=[]
s_int.reverse()
for i in s_int:
    list.append(i)
print(*list)
Buggy python submission (verdict: Runtime Error):
N=int(input())
s=[input() for i in range(N)]
lost_list=[]
taro_card=[]
card_list=[]
for i in s:
    taro_card.append(s.split())
for i in range(1,14):
    card_list.append(["S",str(i)])
    card_list.append(["H",str(i)])
    card_list.append(["C",str(i)])
    card_list.append(["D",str(i)])
for i in taro_card:
    if i not in card_list:
        lost_list.append(i)
for i in lost_list:
    print("{} {}".format(i[0],i[1]))


Fixed submission:
N=int(input())
s=[input() for i in range(N)]
lost_list=[]
taro_card=[]
card_list=[]
for i in s:
    taro_card.append(i.split())
for i in range(1,14):
    card_list.append(["S",str(i)])
for i in range(1,14):
    card_list.append(["H",str(i)])
for i in range(1,14):    
    card_list.append(["C",str(i)])
for i in range(1,14):    
    card_list.append(["D",str(i)])
for i in card_list:
    if i not in taro_card:
        lost_list.append(i)
for i in lost_list:
    print(i[0]+" "+i[1])
Buggy python submission (verdict: Runtime Error):
lst=[]
while True:
    lst.append(input())
    if 0 in lst:
        break
for i in lst:
    sum=0
    for j in range(len(i)):
        sum+=i[j]
    print(sum)


Fixed submission:
lst=[]
while True:
    lst.append(input())
    if "0" in lst:
        break
lst=lst[:-1]
for i in lst:
    sum=0
    for j in range(len(i)):
        sum+=int(i[j])
    print(sum)