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

   for h in range(H):
        for w in range(W):
            print('*', end='')
        else:
            print('+', end='')

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
     
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
     
    print()

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

   for h in range(H):
        for w in range(W):
            print('*', end='')
        else:
            print('+', end='')

        print()

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
     
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
     
    print()

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

   for h in range(H):
        for w in range(W):
            if h == 0 or h == h -1 or w == 0 or w == W - 1:
               print('#', end='')
            else:
                print('*', end='')

        print()

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
     
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
     
    print()

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

    for h in range(H):
        for w in range(W):
            if h == 0 or h == h -1 or w == 0 or w == W - 1:
               print('#', end='')
            else:
                print('*', end='')

        print()

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
     
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
     
    print()

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

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H -1 or w == 0 or w == W - 1:
               print('#', end='')
            else:
                print('*', end='')

        print()

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
     
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
     
    print()

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

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H -1 or w == 0 or w == W - 1:
               print('#', end='')
            else:
                print('.', end='')

        print()

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
     
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
     
    print()

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

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H -1 or w == 0 or w == W - 1:
               print('#', end='')
            else:
                print('.', end='')

        print()

     print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
     
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
     
    print()

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

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H -1 or w == 0 or w == W - 1:
               print('#', end='')
            else:
                print('.', end='')

        print()

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
     
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
     
    print()

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

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
               print('#', end='')
            else:
                print('.', end='')

        print()

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
     
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
     
    print()