Buggy python submission (verdict: Runtime Error):
while 1: 
      h,w=map(int, input().split())
      if h==0 or w==0: break
      eilif h ==1: print("#"*w)
      elif w==1: for j in range(h):print("#")
      else:
           print("#"*w)
           for I in  range(h-2):
                print("#"+"."*(w-2)+"#")
           print("#"*w)
 


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

Buggy python submission (verdict: Runtime Error):
while 1: 
	h,w=map(int, input().split())
	if h==0 or w==0: break
	eilif h ==1: print("#"*w)
	elif w==1: for j in range(h):print("#")
	else:
		print("#"*w)
		for I in  range(h-2):
		print("#"+"."*(w-2)+"#")
		print("#"*w)
 


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

Buggy python submission (verdict: Runtime Error):
while 1: 
	h,w=map(int, input().split())
	if (h==0) or (w==0): break

	else:
		print("#"*w)
		for I in  range(h-2):
		print("#"+"."*(w-2)+"#")
		print("#"*w)
 


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

Buggy python submission (verdict: Runtime Error):
while 1: 
	h,w=map(int, input().split())
	if (h==0) and (w==0): break

	else:
		print("#"*w)
		for I in  range(h-2):
		print("#"+"."*(w-2)+"#")
		print("#"*w)
 


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

Buggy python submission (verdict: Runtime Error):
while 1: 
	h , w=map(int, input().split())
	if (h==0) and (w==0): break

	else:
		print("#"*w)
		for I in  range(h-2):
		print("#"+"."*(w-2)+"#")
		print("#"*w)
 


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

Buggy python submission (verdict: Runtime Error):
while True: 
	h , w=map(int, input().split())
	if (h==0) and (w==0): break

	else:
		print("#"*w)
		for I in  range(h-2):
		print("#"+"."*(w-2)+"#")
		print("#"*w)
 


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

Buggy python submission (verdict: Runtime Error):
while True: 
	h , w=map(int, input().split())
	if (h==0) and (w==0): 
                break

	else:
		print("#"*w)
		for I in  range(h-2):
		print("#"+"."*(w-2)+"#")
		print("#"*w)
 


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

Buggy python submission (verdict: Runtime Error):
while True: 
	h , w=map(int, input().split())
	if (h==0) and (w==0): 
                break
        else:
		print('#'*w)
		for I in  range(h-2):
		print('#'+'.'*(w-2)+'#')
		print('#'*w)
 


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

Buggy python submission (verdict: Runtime Error):
while True: 
	h,w=map(int, input().split())
	if (h==0) and (w==0): 
                break
        else:
		print('#'*w)
		for I in  range(h-2):
		print('#'+'.'*(w-2)+'#')
		print('#'*w)
 


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

Buggy python submission (verdict: Runtime Error):
while True: 
	h,w=map(int, input().split())
	if (h==0) and (w==0): 
                break
        else:
		print('#'*w)
		for I in  range(h-2):
		print('#'+'.'*(w-2)+'#')
		print('#'*w)
 


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