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 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):
import sys
while True:
    h, w = map(int, input().split())
    if h == w == 0:
        break
    line = '
    for _ in range(h):
        print(line)
    print()

Solution (Python):
for i in range(3000):
  h,w=(int(a) for a in input().split())
  if w==0 and h==0:
    break
  for j in range(h):
    for k 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 = (int(x) for x in input().split())

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

    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
    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):
        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 a in range(W):
                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(f'{"
    print('')

Solution (Python):

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

Solution (Python):

XS = list(map(int, open(0).read().split()))
for i in range(0, len(XS), 2):
    H = XS[i]
    W = XS[i+1]
    if H == 0 and W == 0:
        break
    for _ 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):
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):
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:
    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==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 == W == 0:
    exit()
  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:
    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 _ 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 == w == 0:
        break
    else:
        s = "
        [print(s) for _ in range(h)]
        print("")

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

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

Solution (Python):
ls = []
while 1:
    ls1 = list(map(int,input().split()))
    if ls1[0] == 0 and ls1[1] == 0:
        break
    else:
        ls.append(list(ls1))
        ls1.clear()
for i in range(len(ls)):
    for j in range(ls[i][0]):
        for k in range(ls[i][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 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):
H,W = list(map(int,input().split()))
while not(H==0 and W==0):
    for i in range(H):
        print('
    print()
    H,W = 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):
        print("
    print()

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


def resolve():
    for line in sys.stdin:
        h, w = map(int, line.split())

        if h == w == 0:
            return

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


resolve()

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):
for i in range (1000000):
    h,w=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 :
    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):
while True:
    dataset = input().split(" ")

    H = int(dataset[0])
    W = int(dataset[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:
    a,b = map(int,input().split())
    if a==0 and b==0:
        break
    for i in range(a):
        print("
    print()

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

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

    print("")
    h,w = map(int,input().split())
    if  h == 0 and w ==0:
        break

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

Solution (Python):
data=[]
while(True):
  a,b=map(int,input().split(' '))
  data.append((a,b))
  if a==0 and b==0:
    break
  

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

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

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

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

Solution (Python):
a = []
while True:
  H, W = list(map(int, input().split(' ')))
  if H == 0 and W == 0:
    break
  a.append([H, W])
for l in a:
  for h in range(l[0]):
    for w in range(l[1]):
      print('
    print('', sep="\n")
  print('', sep="\n")

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==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):
        print("
    print()

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

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

    for col in range(height):
        for row in range(width):
            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):
        print("
    print()

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

Solution (Python):
inp = []
i = 0
j = 0
k = 0
l = 0

while True:
    inp.append(list(map(int, input().split())))
    if inp[i][0] == 0 and inp[i][1] == 0:
        del inp[i]
        break
    i += 1

for j in range(len(inp)):
    for k in range(inp[j][0]):
        for l in range(inp[j][1]):
            print(end="
        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):
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:
    H,W=map(int,input().split())
    if H+W==0:break
    for i in range(H):
        for i 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):
list = []
count = 0
flag = True

while flag:
    h,w=input().split()
    list.append((int(h),int(w)))
    if list[count][0] == 0:
        flag = False
    count += 1

for k in range(len(list)):
    for i in range(list[k][0]):
        for j in range(list[k][1]):
            print("
        print("")
    if list[k][0] == 0:
        break
    print("")

Solution (Python):


def main():
    while True:
        height,width=map(int,input().split())
        if height==0 and width==0:
            break
        for i in range(height):
            sharp=""
            for j in range(width):
                sharp+="
            print(sharp)
        print("")
            
if __name__=="__main__":
    main()

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
    tmp = "
    for i in range(H):
        print(tmp)
    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 == 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 and H==0:
        break
    else:
        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(0, a):
        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):
EOL = '0 0'
stdin = [line for line in iter(input, EOL)]
lines = (map(int, line.split()) for line in stdin)

for H, W in lines:
    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 a 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 i in range(b):
			print("
		print()
	print()

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

Solution (Python):

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

Solution (Python):
while True:
    h, w = list(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):
while(True):
  h, w = map(int, input().split())
  if h == 0 and w == 0:
    break
    
  c =""
  for i in range(w):
    c += "
  for i in range(h):
    print(c)
  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:
        for i in range(1,H+1):
            for j in range(1,W+1):
                print("
            print()
            
    print()

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

Solution (Python):
while True:
  h, w = list(map(int, input().split()))
  if h == w and h == 0:
    break
  for t 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):
        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 x in range(H):
        for y 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):
        for i in range(w):
            print('
        print()
    print()

Solution (Python):


while True:
    tate,yoko = (int(x) for x in input().split())
    if tate == 0 and yoko == 0:
        exit()
        
    for i in range(tate):
        for j in range(yoko):
            print("
        print()
    print()

Solution (Python):
def Z(): return int(input())
def ZZ(): return [int(_) for _ in input().split()]

def main():
    while True:
        h, w = ZZ()
        if h == 0 and w == 0: break
        for i in range(h): print('
        print('')

    return

if __name__ == '__main__':
    main()

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    else:
        for i in range(H):
            if i == H - 1:
                print('
            else:
                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:
        for i in range(1,H+1):
            for l in range(1,W+1):
                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 = [int(n) for n in input().split()]
    if H==W==0:
        break
    print('\n'.join(['
    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
    for i in range(H):
        print('
    print()

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

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

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

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

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 or b!=0:
    for i in range(a):
      print('
    print(end='\n')
  else:
      break

Solution (Python):

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

    
"""
EOL = '0 0'
stdin = [line for line in iter(input, EOL)]
lines = [map(int, line.split()) for line in stdin]

for H, W in lines:
    for i in range(H):
        print('
    print()
"""

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

for h, w in l:
    for _ 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:
	a, b = map(int, input().split())
	if a == 0 and b == 0:
		exit()
	for i in range(0,a):
		for j in range(0,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):
        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 == 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 j in range(H):
        print("
    print("")

Solution (Python):
import sys 
for i in sys.stdin.readlines():
    taiga = i.split()
    a = int(taiga[0])
    b = int(taiga[1])
    if a == 0 and b == 0:
        break
    for c in range(a):
        print("

    print("")

Solution (Python):
import sys
from itertools import combinations
import math


def I(): return int(sys.stdin.readline().rstrip())


def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))


def S(): return sys.stdin.readline().rstrip()


def LS(): return list(sys.stdin.readline().rstrip().split())


while 1:
    h, w = LI()
    if w == h == 0:
        break
    for i in range(h):
        for q in range(w):
            print('
        print('', end='\n')
    print('', end='\n')

Solution (Python):
for e in iter(input, "0 0"):
    H, W = [int(x) for x in e.split()]
    for i 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 j in range(h):
      
      for k in range(w):
        print('
      print('')
  
  print('')

Solution (Python):
ans = []
for line in open(0).readlines():
    H, W = map(int, line.split())
    if not H:
        break
    ans.append((("
    ans.append("\n")
open(1, 'w').writelines(ans)

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):
        for c in range(b):
            print("
        print()
        
    print()

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

Solution (Python):
while True:
    H, W = list(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 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):

for x in range(300):
    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 :
    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:
        for _ 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):
        for j in range(Y):
            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 (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 j in range(h):
        for i in range(w):
            print("
        print()
    print()

Solution (Python):
import sys
H = []
W = []

for l in sys.stdin:
    Ha, Wa = map(int, l.split())
    if Ha == 0 and Wa == 0:
        break
    H.append(Ha)
    W.append(Wa)

for i, numH in enumerate(H):
    for num in range(numH):
        print("
    print()

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

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

Solution (Python):
while True:
    a,b = map(int,input().split())
    if sum([a,b]) == 0:
        break
    for _ 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()