Buggy python submission (verdict: Runtime Error):
while True :
    (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)

Fixed submission:
while True:
    (H, W) = [int(i) for i in input().split()]
    
    if H == W == 0 :
        break

    print('#' * W)
    for a in range(H - 2) :
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)
    print()

Buggy python submission (verdict: Runtime Error):
while True :
    (H, W) = [int(i) for i in input().split()]

    if H == W == 0:
        break

??????print(('#' * W) + '\n')

    for i in range(H - 2) :
        print('#' + ('.' * (W - 2)) + '#\n')

    print(('#' * W) + '\n')

Fixed submission:
while True:
    (H, W) = [int(i) for i in input().split()]
    
    if H == W == 0 :
        break

    print('#' * W)
    for a in range(H - 2) :
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)
    print()

Buggy python submission (verdict: Runtime Error):
while True :
    (H, W) = [int(i) for i in input().split()]

    if H == W == 0:
        break

??????print(('#' * W) + '\n')

    for i in range(H - 2) :
        print('#' + ('.' * (W - 2)) + '#\n')

    print(('#' * W) + '\n')
    print()

Fixed submission:
while True:
    (H, W) = [int(i) for i in input().split()]
    
    if H == W == 0 :
        break

    print('#' * W)
    for a in range(H - 2) :
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)
    print()

Buggy python submission (verdict: Runtime Error):
while True :
    (H, W) = [int(i) for i in input().split()]

    if H == W == 0:
        break

    print('#' * W)
    for a in range(H - 2):
        print('#' + ('.' * (W - 2)) + '#')
    print('#' * W)

??????print()

Fixed submission:
while True:
    (H, W) = [int(i) for i in input().split()]
    
    if H == W == 0 :
        break

    print('#' * W)
    for a in range(H - 2) :
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)
    print()

Buggy python submission (verdict: Runtime Error):
while True :
    (H, W) = [int(i) for i in input().split()]

    if H == W == 0:
        break

    print('#' * W)
    for a in range(H - 2):
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)

??????print()

Fixed submission:
while True:
    (H, W) = [int(i) for i in input().split()]
    
    if H == W == 0 :
        break

    print('#' * W)
    for a in range(H - 2) :
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)
    print()

Buggy python submission (verdict: Runtime Error):
while True :
    (H, W) = [int(i) for i in input().split()]

    if H == W == 0:
        break

    print('#' * W)
    for a in range(H - 2):
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)

??????print()

Fixed submission:
while True:
    (H, W) = [int(i) for i in input().split()]
    
    if H == W == 0 :
        break

    print('#' * W)
    for a in range(H - 2) :
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)
    print()

Buggy python submission (verdict: Runtime Error):
while True :
    (H, W) = [int(i) for i in input().split()]

    if H == W == 0:
        break

    print('#' * W)
    for a in range(H - 2):
        print("#" + "." * (W - 2) + "#")
    print('#' * W)

    print()

Fixed submission:
while True:
    (H, W) = [int(i) for i in input().split()]
    
    if H == W == 0 :
        break

    print('#' * W)
    for a in range(H - 2) :
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)
    print()

Buggy python submission (verdict: Runtime Error):
while True :
    (H, W) = [int(i) for i in input().split()]

    if H == W == 0:
        break

    print('#' * W)
    for a in range(H - 2):
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)

    print()

Fixed submission:
while True:
    (H, W) = [int(i) for i in input().split()]
    
    if H == W == 0 :
        break

    print('#' * W)
    for a in range(H - 2) :
        print('#' + '.' * (W - 2) + '#')
    print('#' * W)
    print()