Problem:
Print a Rectangle Draw a rectangle which has a height of H cm and a width of W cm. Draw a 1-cm square by single '#'. Input The input consists of multiple datasets. Each dataset consists of two integers H and W separated by a single space. The input ends with two 0 (when both H and W are zero). Output For each dataset, print the rectangle made of H × W '#'. Print a blank line after each dataset. Constraints  1 ≤ H ≤ 300  1 ≤ W ≤ 300  Sample Input 3 4
5 6
2 2
0 0 Sample Output ####
####
####

######
######
######
######
######

##
##

Solution (Python):
H = []
W = []
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    else:
        H.append(h)
        W.append(w)
for hh, ww in zip(H, W):
    for i in range(hh):
        for j in range(ww):
            print('
        print("")
    print("",end="\n")

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H != 0:
        for i in range(H):
            print("
        print("")
    else:
        break

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H==0 and W==0:
        break
    for i in range(H):
        for j in range(W):
            print('
        print()
    print()

Solution (Python):
while True:
    a, b = map(int, input().split())
    if a == b == 0:
        break
    else:
        for i in range(0, a):
            print("
        print()

Solution (Python):
while True:
    H, W = list(map(int, input().split()))
    if H == 0 and W == 0:
        break
    for i in range(H):
        for i in range(W):
            print('
        print()
    print()

Solution (Python):
while True:
    y, x = map(int, input().split())
    if (x==0 and y==0):
        break
    else:
        for i in range(0,y):
           print("

    print()

Solution (Python):
while True:
	h,w = map(int, input().split())
	if h==0 and w==0:
		exit(0)
	for i in range(0,h):
		for j in range(0,w):
			print('
		print()
	print()

Solution (Python):
while True:
    H,W = list(map(int,input().split()))
    if H*H + W*W == 0:
        break
    for i in range(H):
        for j in range(W):
            print("
        print("")
    print("")

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    else:
        for i in range(H):
            print("
    print()

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print('
    print()

Solution (Python):
while True:
    n = input()
    a,b = map(int, n.split())
    if a == 0 and b == 0:
        break
    else:
        for x in range(a):
            for y in range(b-1):
                print('
            print('
        print('')

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    for i in range(h):
        print("
    print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    
    if w == 0 and h == 0:
        break
    
    for i in range(h):
           print("
           
    print()

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    else:
        for i in range(0,H):
            print ("
        print()

Solution (Python):
while True:
  H, W = list(map(int, input().split()))
  if H == 0 and W == 0:
    break
  else:
    for i in range(H):
      print('
    print()

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H == 0 or W ==0 :
        break
    else:
        for i in range(0, H):
            for j in range(0, W):
                print('
            print()
        
        print()

Solution (Python):
while(1):
    H,W=map(int,input().split(" "))
    if(not H and not W):
        break
    for i in range(H):
        for j in range(W):
            print("
        print()
    print()

Solution (Python):
while True:
    h,w = map(int, input().split())
    if h==0 and w==0 :break
    i = 0
    for  i in range(h):
        print('
    print()

Solution (Python):
while True:
    H,W=map(int,input().split())
    if H==0 and W==0:
        break
    else:
        for i in range(H):
            print(W*"
        print("")

Solution (Python):
while True:
    H, W = map(int,input().split())
    if H==0 and W==0:
        break
    
    for _ in range(H):
        print('
    print('')

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    else:
        for h in range(H):
            print("
        print()

Solution (Python):
while True:
    
    H,W=map(int,input().split())
    if H==0 and W==0:
        break
    else:
        for i in range(H):
            for j in range(W):
                print('
            print()
        print()

Solution (Python):
while True:
    a,b = input().split(" ")
    i = int(a) + int(b)
    if i == 0:
        break
    else:
        for n in range(int(a)):
            for m in range(int(b)):
                print('
            print('\r')
        print('\r')

Solution (Python):
while True:

    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print("

    print()

Solution (Python):
while True:

    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print("

    print()

Solution (Python):
while True:
    h,w = [int(x) for x in input().split()]
    width = []

    if h == 0 and w == 0:
       break
    else:
        for i in range(w):
            width.append("
        for j in range(h):
            print("".join(width))
        print()

Solution (Python):
H,W = map(int,input().split())

while H != 0 and W != 0 :
    for _ in range(H):
        print("
    print("")
    H,W = map(int,input().split())

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0: break
    for h in range(H): print('
    print()

Solution (Python):
while True:
    h,w = map(int, input().split())
    if h == 0 and w == 0:
        break
    for i in range(h):
        print("
    print("")

Solution (Python):
list_HW = list()
while True:
    base = input("")
    term = base.split(' ')
    if(int(term[0]) == 0 and int(term[0]) == 0):
        break
    else:
        map_HW = {'H': int(term[0]), 'W': int(term[1])}
        list_HW.append(map_HW)

for HW in list_HW:
    h = HW['H']
    w = HW['W']

    for r in range(h):
        for s in range(w):
            print('
        print('',end='\n')

    print('',end='\n')

Solution (Python):
while (True):
    a,b = map(int,input().split())
    if a ==0 and a ==b:
        break
    
    for i in range(a):
        print("
    print()

Solution (Python):
while True:
    h,w = map(int, input().split()) 
    if h == 0 and w == 0:
        break
    for y in range(h):
        for x in range(w):
            print("
        print()
    print()

Solution (Python):
while (1):
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        exit()
    else:
        tile = str()
        for i in range(h):
            for ii in range(w):
                tile += '
            tile += '\n'
        print(tile)

Solution (Python):
while True:
    a,b=map(int,input().split())
    if a==0 and b==0:break
    for i in range (a):
        print('
    print()

Solution (Python):
while True:
    H,W = [int(i) for i in input().split()]

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

    else:
        for i in range(H):
            for i in range(W):
                print("
            print()
    print()

Solution (Python):
list = []
while True:
    H, W= map(int, input().split())
    if H == 0 and W == 0:
        break

    list.append([H, W])

for i in range(len(list)):
    for j in range(list[i][0]):
        print(list[i][1]*'
    
    print('')

Solution (Python):
while True:
    line = list(map(int,input().split()))
    if line[0]==0:
        break
    for i in range(int(line[0])):
        print("
    print()

Solution (Python):
while True:
    a,b = map(int,input().split())
    if a == 0 and b == 0:break
    else:
        for i in range(a):
            print("
        print()

Solution (Python):
while True:
    H,W=map(int,input().split())
    if H==0 and W==0:
        break
    for i in range(H):
        for n in range(W):
            print('
        print('')
    print('')

Solution (Python):
while True:
    h, w = map(int,input().split())
    if h == 0 and w == 0:
        break
    else:
        for i in range(h):
            for i in range(w):
                print('
            print('')
        print('')

Solution (Python):
while True:
    W, H = list(map(int, input().split()))
    if W == 0 and H == 0:
        break
    else:
        for i in range(W):
            for j in range(H):
                print("
            print ()
        print ()

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H ==0 and W == 0:
        break
    else:
        for i in range(H):
            print("
        print()

Solution (Python):
while 1:
  h,w=map(int,input().split())
  if h==w==0:exit()
  for i in range(h):print("
  print()

Solution (Python):
while 1:
    H,W=map(int,input().split())
    if W==0 and H==0:
        break
    else:
        for char in range(H):
            for i in range(W-1):
                print("
            print("
    print()

Solution (Python):
while True:
    H,W = map(int,input().split())

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

    else:
        while H > 0:
            print("
            H -= 1
                
    print("")

Solution (Python):
while 1:

    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print("

    print()

Solution (Python):
while True:
  x, y = map(int, input().split())
  if x == 0 and y == 0:
      break
  for i in range(x):
    print('

  print('')

Solution (Python):
h, w = map(int, input().split())
while h != 0 or w != 0:
    i = 1
    while i <= h:
        print("
        i += 1
    h, w = map(int, input().split())
    print("")

Solution (Python):
while True:
    a,b = map(int,input().split())
    if a==0 and b==0:
        break
    for j in range(a):
        for i in range(b):
            print("
        print()
    print()

Solution (Python):
while True:
	H, W = map(int, input().split())
	if H == 0 and W == 0:
		break
	for i in range(H):
		print("
	print()

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        for j in range(W):
            print('
        print()
    print()

Solution (Python):
while True :
    H, W = map(int, input().split())
    if H == 0 and W == 0 :
        break
    else:
        for j in range(H) :
            for i in range(W) :
                print("
            print()
        print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    if w == 0 and h == 0:
        break
    else:
        for i in range(h):
            print('
        print()

Solution (Python):
import sys
import math
i=0
j=0
while True:
    H,W=map(int, input().split())
    if(H==0 and W==0):
       break
    for i in range(H):
       print('
    print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    for i in range(h):
        print('
    print()

Solution (Python):
import sys
for e in sys.stdin:
    H, W = map(int,e.split())
    if H == 0 and W == 0:
        break
    else:
        l = ["
        for i in range(H):
            print("".join(l))
            
        print()

Solution (Python):
while True:
    H, W = list(map(int, input().split()))
    if H == 0 and W == 0:
        break
    for i in range(H):
        for j in range(W):
            print("
        print()
    print()

Solution (Python):
while True:

    H,W = map(int, input().split())
    if H == 0 and W == 0:
        break
    for j in range(H):
        for i in range(W):
            print("
        print()
    print()

Solution (Python):
while True:
    H,W=map(int,input().split())
    if H==0 and W==0:
        break
    for i in range(H):
        for j in range(W):
            print("
        print()
    
    print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    
    if (h, w) == (0, 0):
        break
    
    for _ in range(h):
        print("
    print()

Solution (Python):
while True:    
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break 
    for i in range(0, h):
        for j in range(0, w):
            print("
        print()
    print()

Solution (Python):
while True:
    H,W= map(int,input().split())
    if H==0 and W==0:
        break
    for i in range(H):
        print("
    print()

Solution (Python):
H = []
W = []
for _ in range(300):
  _h, _w = map(int, input().split())
  if _h == 0 and _w == 0:
    break
  else:
    H.append(_h)
    W.append(_w)

for i in range(len(H)):
  for _ in range(H[i]):
    dash = ""
    for _ in range(W[i]):
      dash = dash + "
    print(dash)
  print('')

Solution (Python):
while True:
    a, b = map(int, input().split())

    if a == 0 and b == 0:
        break
    else:
        for i in range(a):
            print('
    print()

Solution (Python):
data_list = []
while True:
    H, W = map(int, input().split())
    if not H and not W:
        break
    data_list.append([H, W])

for data in data_list:
    for x in range(data[0]):
        print("
    print('')

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    for h in range(H):
        print("
    print('')

Solution (Python):
while True:
    H, W = map(int, input().split())

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

    for h in range(H):
        for w in range(W):
            print('
        print()
    print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
        
    else:
        for i in range(h):
            print("
            
    print()

Solution (Python):
while True:
    h,w = map(int,input().split())
    if h == 0 and w == 0:
        break

    for i in range(h):
        print('
    
    print()

Solution (Python):
while True:
    h,w = map(int,input().split())
    if h == 0 and w == 0:
        break
    for i in range(h):
        print("
    print("")

Solution (Python):
while True :
    H,W=input().split()
    H,W=[int(H),int(W)]
    if H==0 and W==0 :
        break
    s=""
    for i in range(0,W):
        s=s+"
    for i in range(0,H):
        print(s)
    print()

Solution (Python):
while True:
    h,w = map(int,input().split())
    if h==0 and w==0:
        break
    else:
        for _ in range(h):
            for _ in range(w):
                print('
            print('')
        print('')

Solution (Python):
while True:
  H,W = map(int,input().split())
  if H == W == 0:
    break
  for j in range(H):
    for i in range(W):
      print('
    print()
  print()

Solution (Python):
while True:
    H, W = (int(x) for x in input().split())
    if (H == 0 and W == 0): break;
    for h in range(H):
        for w in range(W):
            print("
        print()
    print()

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == W == 0:break
    for i in range(H):
        for j in range(W):
            print("
        print()
    print()

Solution (Python):
while True:
    a,b=map(int,input().split())
    
    if a==0 and b==0:break
    for i in range (a):
        print('
        
    print()

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        for j in range(W):
            print("
        print()
    print()

Solution (Python):
while True:
    H, W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print('
    print('')

Solution (Python):
h = 0
w = 0
listh = []
listw = []
count = 0

while(True):
    h, w = map(int,input().split())
    if h ==0 and w == 0:
        break
    listh.append(h)
    listw.append(w)
    count += 1

for i in range(count):
    str = ''
    for h in range(listh[i]):  
        for w in range(listw[i]):
            str += '
        print(str)
        str = ''
    print('')

Solution (Python):
while(1):
    h,w=map(int,input().split())
    if(h==w==0):break
    for i in range(h):
        for j in range(w):
            print("
        print()
    print()

Solution (Python):
while 1:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    else:
        for _ in range(H):
            print("
    print("")

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    else:
        for i in range(h):
            for i in range(w):
                print("
            print()
        print()

Solution (Python):
while True:
    h,w = map(int, input().split())
    if h == 0 and w == 0: break
    for j in range(h):
        for i in range(w):
            print("
        print()
    print()

Solution (Python):
def write(H, W):
    for _ in range(H):
        print('

while True:
    H, W = map(int, input().split())
    if H==0 and W==0:
        break
    write(H, W)
    print('')

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == 0 == W:
        break
    else :
        for i in range(H):
            print("
        print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    
    
    
    for height in range(h):
        for width in range(w):
            print('
        print()
    print()

Solution (Python):
while True:

    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print("

    print()

Solution (Python):
while True:
	h, w = map(int, input().split())
	if h == 0 and w == 0:
		break
	for i in range(h):
		print('
	print()

Solution (Python):
while True:
    
    a, b =map(int, input().split())
    
    if a == b == 0:
        break

    for i in range(a):
        for j in range(b):
            print("
    
        print("")
        
    print("")

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    else:
        for i in range(h):
            print('
        print()

Solution (Python):
while True:
    h,w=map(int,input().split())
    if h==0 and w==0:
        break
    else:
        for h in range(h):
            print("
    print("")

Solution (Python):
a = []
for i in iter(input, '0 0'):
    a.append(list(map(int, i.split())))
for i in range(len(a)):
    for j in range(a[i][0]):
        for k in range(a[i][1]):
            print('
        print()
    print()

Solution (Python):
while True:
    h,w = map(int,input().split())
    if h == 0 and w == 0:
        exit ()
    for _ in range(h):
        for _ in range(w):
            print ("
        print ()
    print ()

Solution (Python):
while True:
    h,w=map(int,input().split())
    if h==0 and w==0:
        break
    for i in range(h):
        print(str(w*'
    print()

Solution (Python):

while True:
    H,W=map(int,input().split())
    if H==0 and W==0:
        break
    for i in range(H):    
        print('
    print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == w == 0:
        break
    for i in range(h):
        for j in range(w):
            print('
        print()
    print()

Solution (Python):

while True:
    h,w = map(int,input().split())
    if h == 0:break
    for i in range(h):
        print("
    print ()

Solution (Python):
while True:
    h,w=map(int,input().split())
    if h==0 and w==0 : exit(0)
    else:
        for i in range(h):
            print('
        print()

Solution (Python):
hw = []
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    hw.append([h, w])

for h, w in hw:
    for hi in range(h):
        print('
    print('')

Solution (Python):
import math
import copy
from copy import deepcopy
import sys
import fractions

from functools import reduce

import decimal
import heapq
import collections
import itertools
sys.setrecursionlimit(100001)






def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList




while True:
    h, w = map(int, input().split())
    if h + w == 0:
        exit(0)

    for i in range(h):
        for j in range(w):
            print("
        print()
    print()

Solution (Python):

while True:
    n = list(map(int,input().split()))
    if n[0] == 0:
        break
    for i in range(n[0]):
        s = ""
        for j in range(n[1]):
            s += "
        print(s)
    print()

Solution (Python):
while 1:
    h,w=map(int,input().split())
    if h==0 and w==0:
        break
    else:
       s="
       for i in range(w-1):
           s+="
       for i in range(h):
           print(s)
       print("")

Solution (Python):
while True:
  s = input().rstrip().split(' ')
  H = int(s[0])
  W = int(s[1])
  if H == 0 and W == 0:
    break;
  ans = ""
  for i in range(W):
    ans += "
  for j in range(H):
    print(ans)
  print("")

Solution (Python):
while True:
 H,W= map(int,input().split())
 if H == 0 and W == 0:
    break
 for j in range(H):
    for i in range(W):
        print("
    print()
 print()

Solution (Python):
while True:
    H, W = map(int, input().split())
    
    if H == 0 and W == 0:
        break
    
    for i in range(H):
        print("
    
    print()

Solution (Python):

while True:
    a,b = map(int,input().split())
    if a == b == 0:
        break
    for j in range(a):
        for i in range(b):
            print("
        print()
    print()

Solution (Python):
while True:
    H,W = map (int,input().split())   

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

    else:
        for h_size in range(H):
            for w_size in range(W): 
                print("
            print("")
        print("")

Solution (Python):
while 1:
    h,w=map(int, input().split())
    if h==0 and w==0:
        break
    for i in range(h):
        for j in range(w):
            print("
        print()
    print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h + w == 0: break
    print(('

Solution (Python):
h, w = 1, 1

dataset = []
while not(h == w == 0):
    h, w = map(int, input().split())
    dataset.append([h, w])

for n, data in enumerate(dataset):
    h, w = data[0], data[1]
    for i in range(h):
        for j in range(w):
            print("
        print("")
    if n!=len(dataset)-1:
        print("")

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    for i in range(H):
        print("
    print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        exit()
    ans = ["
    print(*ans, sep="\n")
    print()

Solution (Python):
while True:
	h,w=map(int, input().split())
	if h==0 and w==0:
		break
	for i in range(h):
		print("
	print()

Solution (Python):
while True:
    H, W = [int(n) for n in input().split()]
    if H == 0 and W == 0:
        break
    for i in range(H):
        print('
    print()

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print("
    print()

Solution (Python):
while True:
    h,w = map(int,input().split())
    if h==0 and w==0:
        break
    for i in range(h):
        print("
    print()

Solution (Python):
while(True):
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    else:
        pass
    for i in range(h):
        for j in range(w):
            print("
        print("")
    print("")

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a==0 and b==0:
        break
    for i in range(a):
        for j in range(b):
            print("
        print("")
    print("")

Solution (Python):
while True:
    H,W = list(map(int, input().split()))
    if W == 0 and H == 0:
        break
    w = 0
    h = 0
    for h in range(H):
        for w in range(W):
            print("
        print()
    print()

Solution (Python):
while True:
    raw,col=map(int,input().split())
    if raw==0 and col==0:
        break
    for i in range(raw):
        print('
    print()

Solution (Python):
while True:
    a,b = map(int,input().split())
    if a == 0 and b == 0: break
    for i in range(a):
        print('
    print()

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == 0 and W == 0:break
    for i in range(H):
        for j in range(W):
            print("
        print()
    print()

Solution (Python):
while True:
    h,w=map(int,input().split())
    if h==0 and w==0:
        break
    for i in range(h):
        print('
    print()

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == 0: break
    for i in range(h):
        print("
    print()

Solution (Python):


while True:
    H, W = map(int, input().split())
    if H==0 and W==0:
        break

    
    for h in range(H):
        for w in range(W):
            print("
        print()
    print()

Solution (Python):
while True:
  h,w=map(int, input().split())
  
  if h == 0 and w == 0:
    break

  for y in range(h):
    for x in range(w):
      print("
    print()
  print()

Solution (Python):
h, w = map(int, input().split())

while h != 0 or w != 0:
    for i in range(h):
        print("
    print()
    h, w = map(int, input().split())

Solution (Python):
while True:
    h,w = map(int, input().split())
    
    if h == 0 and w == 0:
        break
    
    for i in range(h):
            print("
    print()

Solution (Python):
while 1:
    H,W = map(int,input().split())
    if (H,W) == (0,0):
        break
    for _ in range(H):
        print('
    print()

Solution (Python):
while True:
    input_value = input()

    height, width = map(int, input_value.split())

    if height == 0 and width == 0:
        break

    columns = ['
    line = ''.join(columns)

    rows = [line] * height
    rectangle = '\n'.join(rows)

    print(rectangle)
    print()

Solution (Python):
count = 0
data = []
while True:
  count += 1
  h, x = map(int,(input().split()))
  data.append([h, x])
  if x == 0 and h == 0:
    break
for i in range(count-1):
  h, x = data[i]
  for j in range(h):
    print("
  print("")

Solution (Python):
while True:
    t, y = map(int, input().split())
    if t == 0 and y == 0:
        break
    for i in range(t):
        print("
    print("")

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print("
    print()

Solution (Python):
while True:
	x=list(map(int,input().split()))
	if x[0]==0 and x[1]==0:
		break
	else:
		for i in range(x[0]):
			print('
	print('')

Solution (Python):
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    for i in range(h):
        print("
    print()

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        exit()
    for i in range(H):
        print("
    print()

Solution (Python):
while True:
    x,y=map(int,input().split())
    if x == 0 and y == 0:
        break
    count = '
    for i in range(x):
        print(count)
    print()

Solution (Python):
while True:
    H, W = map(int,input().split())

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

    for i in range(H):
        print("

    print()

Solution (Python):
while True:
    h,w = map(int,input().split())
    if h == 0 and w == 0:
        break
    
    
    for i in range(h):
        for j in range(w):
            print("
        print()
    print()

Solution (Python):
while True:
    H, W = list(map(int, input().split()))
    if H == 0 and W == 0:
        break
    else:
        for i in range(H):
            for j in range(W):
                if j == W-1 and i == H-1:
                    print("
                elif j == W-1:
                    print("
                else:
                    print("

Solution (Python):
lst = []
while True:
    a = list(map(int, input().split()))
    if a[0] == 0 and a[1] == 0:
        break
    else:
        lst.append(a)
for i in range(len(lst)):
    for y in range(lst[i][0]):
        for x in range(lst[i][1]):
            print("
        print()
    print()

Solution (Python):
def main():
  while True:
    h, w = map(int, input().split(' '))
    if h == 0 and w == 0:
      break
    
    for _ in range(h):
      print('
    print('')

    
if __name__ == "__main__":
  main()

Solution (Python):
BIG_NUM = 2000000000

while True:
    H, W = map(int, input().split())
    if H == 0 or W == 0:
        break
    else:
        for i in range(H):
            print('
    print()

Solution (Python):
while True:
    a,b=map(int,input().split())
    if a==0 and b==0:
        break
    for i in range (a):
        print('
    print()

Solution (Python):
while True:
    a,b = map(int,input().split())
    if a == 0  and b == 0:
        break
    for i in range(a):
        print("
    print()

Solution (Python):
while True :
    a,b = map(int,input().split())
    n = 0
    while True :
    
        if n == a:
            break
        else :
            n += 1
            print("
        
        
    if a == 0 and b == 0 :
        break 
    print()

Solution (Python):
while True:
    H,W = [int(i) for i in input().split()]
    if H == 0 == W:
        break
    for a in range(H):
        print("
    print()

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H == W and H == 0:
        break
    else:
        ([print('
        print()

Solution (Python):
while(True):
    h, w = (int(x) for x in input().split())
    if (h == 0) and (w == 0):
        break;
    for i in range(h):
        for j in range(w):
            print('
        print('')
    print('')

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    else:
        for i in range(H):
            print('
        print()

Solution (Python):
while True:
  h_num, w_num = map(int, list(input().split()))
  if h_num != 0 and w_num != 0:
    for h in range(h_num):
      for w in range(w_num):
        print('
      print()
    print()
  else:
    break

Solution (Python):
while True:
    h,w = map(int,input().split())
    if h == w == 0:
        break
    for i in range(h):
        print('
    print()

Solution (Python):
s_list = list()

while True:
    h,w = map(int,input().split())
    s_pair = [h,w]
    if s_pair == [0,0]:
        break
    s_list.append(s_pair)

for pair in s_list:
    for h in range(pair[0]):
        for w in range(pair[1]):
            print('
        print('')
    print('')

Solution (Python):



while True:
    h, w = list(map(int, input().split()))
    if h == 0 and w == 0:
        break
    for _ in range(h):
        print("
    print()

Solution (Python):
while True:
  h, w = map(int, input().split())
  if w == 0 and h == 0:
    break
  for i in range(h):
    print("
  print()

Solution (Python):
while True:
    a,b=map(int,input().split())
    if a==0 and b==0:break
    for i in range (a):
        print('
    print()