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):
while True:
    h, w = map(int, input().split())
    if h == w == 0:
        break
    else:
        for x in range(h):
            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
    elif h == 0 or w == 0:
        continue
    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):
            for j in range(W):
                if j == W-1:
                    print("
                else:
                    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 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):
            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 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 y in range(0, H):
        for x in range(0, W):
            print('
        print('')
    print('')

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

Solution (Python):
import sys

def rect(h, w):
	for _ in range(h):
		print('

while True:
	h, w = map(int, input().split())
	if h == 0 & w == 0:
		break
	else:
		rect(h, w)
		print('\r')

Solution (Python):
while True:
    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 = input().split()

    h = int(h)
    w = int(w)

    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:
    W,H=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
    
    for i in range(h):
        print('
    print()

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

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

Solution (Python):
i_nums = []
x = True
while x == True:
    i_nums.append(list(map(int, input().split())))
    if i_nums[-1][0] == i_nums[-1][1] == 0:
        x = False
i_nums.pop()

for nums in i_nums:
    for i in range(nums[0]):
        for j in range(nums[1]):
            print('
        print('')
    print('')

Solution (Python):
h, w = [int(i) for i in input().split()]
while h or w:
    print(("
    h, w = [int(i) for i in input().split()]

Solution (Python):
import sys
while True:
    y, x = [int(i) for i in input().split()]
    if x == 0 and y == 0:
        sys.exit()
    else:
        for _ in range(y):
            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:
        break
    for i in range(H):
        print('
    print()

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

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):
input_list = []
while True:
    pair = list(map(int, input().split(' ')))
    if pair[0] == 0 and pair[1] == 0:
        break
    input_list.append(pair)

for pair in input_list:
    h = pair[0]
    w = pair[1]
    for y in range(h):
        for x in range(w):
            print('
        print('')
    print()

Solution (Python):
def main():
    h,w = map(int,input().split())
    if h*w == 0:
        return False
    for _ in range(h):
        print("
    print()
    return True

while main():
    pass

Solution (Python):


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

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
while True:
	H,W=map(int,input().split())
	if H==0 and W==0:
		break
	for i in range(H):
		print("
	print()

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

Solution (Python):
while True:
    ans = []
    h, w = map(int, input().split())
    if h >= 1 and w >= 1:
        for i in range(h):
            ans.append('
        print('\n'.join(ans) + '\n')
    elif h == 0 and w == 0:
        break

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

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

for t in li:
    h, w = t
    for i in range(0, h):
        for j in range(0, w):
            print('
        print()
    print()

Solution (Python):
while True:
    a,b = (int(x) for x in 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 = [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
    for i in range(h):
        print("
    print()

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

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

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

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

    print("")

Solution (Python):
def test():

	while True:
		i = list(map(int,input().split()))
	
		H = i[0]
		W = i[1]

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

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

		print()

if __name__ == "__main__":
	test()

Solution (Python):

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

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

    
    print("")

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

while not (h == 0 and w == 0):
    for _ in range(h):
        print("".join(['

    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):
    s=''
    h,w=map(int,input().split())
    if (w==0)&(h==0):
        break
    else:
        for i in range(w):
            s=s+'
        for i in range(h):
            print(s)
        print('')

Solution (Python):
while True:
    a, b = map(int, input().split())
    c = "
    for i in range(a):
        print(c*b)  
    if a== 0 and b== 0:
        break
    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 = list(map(int,input().split()))
    H,W = A[0],A[1]

    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 = [int(_) for _ in input().split()]
    if H == W == 0:
        exit(0)
    for _ in range(H):
        print("
    print("")

Solution (Python):
x, y = map(int, input().split())
while not(x == 0 and y == 0):
	print(x*((y*'
	x, y = map(int, input().split())

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

Solution (Python):
while True:
    a,b = map(int,input().split())
    if a == 0 or b == 0:
        break
    else:
        for i in range(a):
            print('
            if i == a-1:
                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 or 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
    
    print_str = "
    for i in range(H):
        print(print_str)
    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:
    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 1:
    h,w=map(int,input().split())
    if (h,w)==(0,0):
        break
    print("\n".join(["

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 y in range(H):
        for x in range(W):
            print("
        print()
    print()

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

Solution (Python):
while 1:
    H,W=[int(i) for i in input().split()]
    if H==0 and W==0:
        break
    for i in range(0,H):
        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):
        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):
BIG_NUM = 2000000000

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==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 == 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
    for i in range(h):
        print("
    print()

Solution (Python):
while 1:
    n = input().split()
    h = int(n[0])
    w = int(n[1])
    if h==0 and w == 0:
        break
    for a in range(h):
        for b in range(w):
            print("
        print("")
        
    print("")

Solution (Python):
while True:
    args = input().split()
    if args[0] == '0' and args[1] == '0':
        break

    H = int(args[0])
    W = int(args[1])

    pr = ''
    while H > 0:
        while W > 0:
            pr += '
            W-=1
        print(pr)
        pr = ''
        W = int(args[1])
        H-=1

    print('')

Solution (Python):
while True:
    a,b=map(int,input().split())
    if a==0 and b==0 :
        break
    x=b
    while a>0:
        b=x
        while b>0:
            print('
            b-=1
        a-=1
        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
    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 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,W)==(0,0):
        break
    for i in range(H):
        for j in range(W):
            if j<W-1:
                print("
            else:
                print("
    print("")

Solution (Python):
while True:
    h,w = map(int,input().split())
    if h == w 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
    for j in range(h):
        for i in range(w):
            print("
        print()
    print()

Solution (Python):
import sys

while True:
    Nx,Ny = [int(x) for x in input().split()]
    if Nx==0 and Ny==0:
        break
    for x in range(Nx):
        print("
    print()

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

    if H == 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 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
    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
    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
    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
        
    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
        
    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):
BIG_NUM = 2000000000
 
while True:
 
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print("
 
    print()

Solution (Python):
if __name__ == "__main__":
    while True:
        h, w = map(lambda x: int(x), input().split())

        if (w == 0 & 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 i in range(h):
        print('
    print()

Solution (Python):
while True:
    h,w=map(int,input().ｓplit())
    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:
	INPUT = [int(i) for i in input().split()]
	a = INPUT[0]
	b = INPUT[1]
	
	if a == 0 and b == 0:
		break
		
	else:
		for i in range(a):
			print('
		print()

Solution (Python):
def draw_rect(h, w):
    for i in range(h):
        for j in range(w):
            print("
            
        print("")
        
    print("")

while True:
    [h, w] = map(int, input().split(" "))
    if h == 0 and w == 0:
        break
    
    draw_rect(h, w)

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    else:
        for i in range(x):
            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 = [int(x) for x in input().split()]
    if (H,W)==(0,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 _ 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:
    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:
    value = input().split(" ")
    H = int(value[0])
    W = int(value[1])
    
    if H == 0 and W == 0:
        break
    
    for i in range(H):
        for j in range(W):
            print("
        print()
    print()

Solution (Python):





for _ in range(100):
    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):
        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):
def output(W,H):
    i=1
    while i<=H:
        print("
        i=i+1
    print("")

input_number=input()

array=input_number.split()


W=int(array[0])
H=int(array[1])

while not( W==0 and H==0):

    output(H,W)
    
    input_number=input()
    array=input_number.split()
    W=int(array[0])
    H=int(array[1])

Solution (Python):

while True:
    H,W=(int(x) for x in input().split())
    if H==0 & W==0:
        break;
    else:
        for i in range(H):
            for j in range(W):
                print("
            print("")
    print("")

Solution (Python):
while True:
    H,W = [int(x) for x in input().split()]
    if (H,W)==(0,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):
    for j in range(W):
      print("
    print()
  print()

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

Solution (Python):
v = list(map(int, input().split()))
while v[0]!=0 or v[1]!=0:
    for i in range(v[0]):
        for j in range(v[1]):
            print ("
        print ()
    print ()
    v = list(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):
        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:
  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 = input().split()
    if h == "0" and w == "0":
        break
    h = int(h)
    w = int(w)
    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):
        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
    print(('

Solution (Python):
while True:
    h,w=map(int,input().split())
    if ([w,h]==[0,0]):
        exit()
    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(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):
        for j in range(b):
            print("
        print()
    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:
    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 == 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 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):
        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):
			print("
	print()

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

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

Solution (Python):


from collections import* 
from fractions import gcd
from functools import* 
from itertools import* 
from operator import mul
from bisect import* 
from heapq import* 
from math import factorial,pi
from copy import deepcopy
import sys

sys.setrecursionlimit(10**6)


def main():
    while 1:
        s=input()
        if "0 0" in s:
            break
        else:
            a,b=map(int,s.split())
            for i in range(a):
                print("
        print()

if __name__ == '__main__':
    main()

Solution (Python):
l=[]
while 1:
  s = input()
  if s == "0 0":
    break
  l.append(s)

for z in l:
  h,w=map(int,z.split())
  for y in range(h):
    for x in range(w):
      
      print("
    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:
    a,b=map(int,input().split())
    if a==0 and b==0:break
    for i in range (a):
        print('
    print()

Solution (Python):
while True:
    num_H, num_W = list(map(int, input().split()))
    if num_H == num_W == 0:
        exit()
    for count in range(num_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==W==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()

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

Solution (Python):
while True:
    H,W = map(int, input().split())
    if H==0 & 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):
lines = []
colums = []

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

for H,W in zip(lines,colums):
 for i in range(H):
   for j in range(W):
     print("
   print("\n",end="")
 print("\n",end="")

Solution (Python):
while 1:
  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 _ in range(H):
        print('
    print()

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

for (Hlist, Wlist) in zip(H_list,W_list):
  for i in range(Hlist):
    for i in range(Wlist):
        print("
    print()
  print()

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

Solution (Python):
while True:
    data = input().split()
    h = int(data[0])
    w = int(data[1])
    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==0 and w==0:
    break
  for i in range(h):
    print('
  print('')

Solution (Python):
def print_rectangle(h, w):
    for _ in range(h):
        print('


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

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

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