Buggy python submission (verdict: Runtime Error):
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    for i in range(H):
        if i = 1:
            print("#"*W)
        elif i = H:
            print("#"*W)
        else:
            print("#","・"*(W-2),"#")
    


Fixed submission:
while True:
    H,W = map(int,input().split())
    
    if H == W == 0:
        break
    
    for i in range(H):
        if i == 0 or i == H-1:
            print('#' * W)
        else:
            print('#','.'*(W-2),'#',sep='')
    print('')

Buggy python submission (verdict: Runtime Error):
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    for i in range(H):
        if i = 1:
            print("#"*W)
        elif i = H:
            print("#"*W)
        else:
            print("#","・"*(W-2),"#")
    print()


Fixed submission:
while True:
    H,W = map(int,input().split())
    
    if H == W == 0:
        break
    
    for i in range(H):
        if i == 0 or i == H-1:
            print('#' * W)
        else:
            print('#','.'*(W-2),'#',sep='')
    print('')

Buggy python submission (verdict: Runtime Error):
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    for i in range(H):
        if i = 1:
            print("#"*W)
        elif i = H:
            print("#"*W)
        else:
            print("#","・"*(W-2),"#")
    print()


Fixed submission:
while True:
    H,W = map(int,input().split())
    
    if H == W == 0:
        break
    
    for i in range(H):
        if i == 0 or i == H-1:
            print('#' * W)
        else:
            print('#','.'*(W-2),'#',sep='')
    print('')

Buggy python submission (verdict: Runtime Error):
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    for int(i) in range(H):
        if i = 1:
            print("#"*W)
        elif i = H:
            print("#"*W)
        else:
            print("#","・"*(W-2),"#")
    print()


Fixed submission:
while True:
    H,W = map(int,input().split())
    
    if H == W == 0:
        break
    
    for i in range(H):
        if i == 0 or i == H-1:
            print('#' * W)
        else:
            print('#','.'*(W-2),'#',sep='')
    print('')

Buggy python submission (verdict: Runtime Error):
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    for i in range(1, H):
        if i == 1,H:
            print("#"*W)
        else:
            print("#","."*(W-2),"#")
    print()


Fixed submission:
while True:
    H,W = map(int,input().split())
    
    if H == W == 0:
        break
    
    for i in range(H):
        if i == 0 or i == H-1:
            print('#' * W)
        else:
            print('#','.'*(W-2),'#',sep='')
    print('')

Buggy python submission (verdict: Runtime Error):
    while True:
        data = [int(x) for x in input().split(' ')]
        H = data[0]
        W = data[1]

        if H == 0 and W == 0:
            break

        for i in range(H):
            if i == 0 or i == H-1:
                print('#' * W)
            else:
                print('#' + '.'*(W-2) + '#')
        print('')



Fixed submission:
while True:
    H,W = map(int,input().split())
    
    if H == W == 0:
        break
    
    for i in range(H):
        if i == 0 or i == H-1:
            print('#' * W)
        else:
            print('#','.'*(W-2),'#',sep='')
    print('')

Buggy python submission (verdict: Runtime Error):
if __name__ == '__main__':
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    for i in range(1, H):
        if i == 1:
            print("#"*W)
        elif i == H:
            print("#"*W)
        else:
            print("#","."*(W-2),"#")
    print()


Fixed submission:
while True:
    H,W = map(int,input().split())
    
    if H == W == 0:
        break
    
    for i in range(H):
        if i == 0 or i == H-1:
            print('#' * W)
        else:
            print('#','.'*(W-2),'#',sep='')
    print('')