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 == 0 and w == 0:
        break
    for j in range(h):
        print("
    print()

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

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

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

Solution (Python):

import sys






min=1000000
max=-1000000
total=0

while(1):
    tmp = input().split()
    h,w = list(map(lambda a: int(a), tmp))
    if((h==0)and(w==0)):
        sys.exit()
    for i in range(h):
        tmp=""
        for j in range(w):
            tmp+="
        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:
    a,b = map(int,input().split())
    if a==0:
        break
    for i in range(a):
        print('
        
    print()

Solution (Python):
while 1:
    val = input().split()
    h = int(val[0])
    w = int(val[1])
    if h == 0 and w == 0:
        break
    for cnt in range(h):
        for i 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):
hws = []
while True:
    hw = list(map(int,input().split()[:2]))
    if hw[0] == hw[1] == 0:
        break
    hws.append(hw)

for hw in hws:
    for height in range(hw[0]):
        for width in range(hw[1]):
            print('
        print()
    print()

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

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

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

for i in range(len(H)):
    for j in range(H[i]):
        print('
    print('')

Solution (Python):
while True:
    H, W = [int(x) for x in 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):
    s = input()
    t = s.split()
    H,W = int(t[0]),int(t[1])
    if H==W==0:
        break
    else:
        x= '
        for i in range(H):
            print(x)
        else:
            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):
        for j in range(w):
            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):
for i in range (10000000000000):
    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(1):
    hoge = list(map(int,input().split()))
    w,h = hoge[0],hoge[1]
    if w == 0 and h == 0:
        break
    for i in range(w):
        print("
    print("")

Solution (Python):
A = []
H, W = map(int, input().split())
while H != 0 or W != 0:
    A.append([H,W])
    H, W = map(int, input().split())
for i in range(len(A)):
    for j in range(A[i][0]):
        print('
    print('')

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

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

Solution (Python):
import sys
input = sys.stdin.readline

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

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

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

Solution (Python):
h, w = map(int, input().split())
while h != 0 or 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 == W == 0 :
        break
    for i in range(H) :
        print('
    print('')

Solution (Python):

a=[]
b=[]
while(True):
    x,y = map(int,input().split())
    if(x==0 and y==0):
        break
    a.append(x)
    b.append(y)
for qq in range(len(a)):
    for qqq in range(a[qq]):
        for qqqq in range(b[qq]):
            print("
        print("")
    print("")

Solution (Python):

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

for h,w in hw:
    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 1:
    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 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 == 0 and w ==0:
        break
    
    for i in range(0, h):
        for j in range(0, w):
            print('
        print()
    print()

Solution (Python):
while True:
    table = list(map(int,input().split()))
    H = table[0]
    W = table[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):
H,W = map(int,input().split())
while not (H == 0 and W == 0):
    for i in range(H):
        print('
    print('')
    H,W = 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):
answer = []

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

    if H == W == 0:
        break
    else:
        for i in range(H):
            answer.append("

    answer.append("")

[print(answer[i]) for i in range(len(answer))]

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

Solution (Python):
H,W=(int(x) for x in input().split())
while H!=0 or W!=0:
    for i in range(H):
        print("
    print("")
    H,W=(int(x) for x in input().split())

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

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

Solution (Python):
x,y=[int(x) for x in input().split()]
for i in range(x):
  print("

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

Solution (Python):
for _ in range(10000):
    h, w = map(int, input().split())
    if h == 0:
        if w == 0:
            break
    for _ in range(h):
        l = ""
        for _ in range(w):
            l += '
        print(l)
    print()

Solution (Python):
HW_list = list()
count = 0

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

for i in range(count):
    for H in range(HW_list[i][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:
        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:
        exit()
    for i in range(a):
        print('
    print()

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

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

Solution (Python):
while True:
    l = input().split()
    H = int(l[0])
    W = int(l[1])

    if 0 == H == W:
        break
    
    string = ''
    for i in range(W):
        string += '
    
    for i in range(H):
        print(string)

    print()

Solution (Python):
import sys
import itertools
import math



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

while 1:
    H, W = map(int, readline().split())
    if H == 0 and W == 0:
        break
    else:
        for _ in range(H):
            Y = '
            print(Y)
    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 = list(map(int, input().split() ))
 if H==0 and W==0:
  break
 for r in range(H):
  for c in range(W):
   print("
  print()
 print()

Solution (Python):
while 1:
	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
    for _ in range(h):
        print(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):
li = []
while True:
    li.append(list(map(int, input().split())))
    if li[-1] == [0, 0]:
        li.pop()
        break
for l in li:
    for i in range(l[0]):
        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:
	h,w = map(int, input().split())
	if h==0 and w==0:
		break
	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
    for i in range(a):
        print("
    print()

Solution (Python):
def printRectangle(h, w) : 
    for i in range(0, h) : 
        for j in range(0, w) : 
            print("
        print('')
    print('')
for j in range(30):
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break
    else:
        printRectangle(h, w)

Solution (Python):
l=[]
while(True):
    ll=[]
    H,W=(int(a) for a in input().split())
    if H==0 and W==0:
        break
    ll.append(H)
    ll.append(W)
    l.append(ll)
for i in range(len(l)):
    lll=[]
    h=l[i][0]
    w=l[i][1]
    for j in range(w):
        lll.append("
    wo="".join(lll)
    for k in range(h):
        print(wo)
    print("")

Solution (Python):

while True:
    h,w=list(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=input().split()
    H=int(H)
    W=int(W)
    a=''
    for w in range(W):
        a+='
        
    for i in range(H):
        print(a)
    
    if H==0:
        break
    print("")

Solution (Python):
while True:
    h, w = [int(i) for i 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

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

    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):
for _ in range(100000):
    H,W = map(int, input().split())
    if H+W==0:
        exit()
    W_w = '
    for i in range(H):
        print(W_w)
    print()

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

Solution (Python):

for i in iter(input, '0 0'):
    height, width = list(map(int, i.split()))
    
    for h in range(height):
        line = ''
        for w in range(width):
            line += '
        print(line)
        
    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):
a = []

while True:
    a.append(list(map(int, input().split())))
    if a[-1] == [0, 0]:
        a.pop(-1)
        break

for i in range(0, len(a)):
    for j in range(0, a[i][0]):
        print('
    print('')

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

Solution (Python):
while True:
    a=map(int,raw_input().split())
    if a == [0,0]:
        break
    for x in range(a[0]):
        print("
    print

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

Solution (Python):
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        quit()
    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(1):
    h, w = map(int, input().split())
    if h==0 & 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(1, h+1):
        print("
    
    print()

Solution (Python):
def print_rectangle(H, W):
    
    for i in range(H):
        for j in range(W):
            print("
        print()
    print()



if __name__ == "__main__":

    while(1):

        param = input().split(" ")
        h = int(param[0])
        w = int(param[1])

        if h != 0 and w != 0:
            print_rectangle(h, w)
        else:
            break

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):
a,b=map(int,input().split())
while a or b:
    for i in range(a):
        print('
    print()
    a,b=map(int,input().split())

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):
    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):
while True:
    H, W = map(int,input().split())
    if H + W == 0:
        exit()
    s = "
    for i in range(H):
        print(s)
    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==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 _ in range(H):
            print("
    print()

Solution (Python):
import sys

while True:
    h, w = map(int, input().split())
    if w == 0 and h == 0:
        break
    
    line = "
    for row in range (h):
        print(line)
    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:
    integers = list(map(int, input().split(" ")))
    H = integers[0]
    W = integers[1]
    if H != 0 and W != 0:
        for i in range(H):
            print("
        print("")
    else:
        break

Solution (Python):
S = list(map(int, open(0).read().split()))[:-2]
for h, w in zip(*[iter(S)]*2):
    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:
    data = input().split()
    h = int(data[0])
    w = int(data[1])

    if h == 0 and w == 0:
        break
    for a in range(h):
        for i in range(w):
            print('
        print()
    print()

Solution (Python):


while True:
    T = list(map(int,input().split()))
    if T[0]==0 and T[1]==0:
        break

    for i in range(T[0]):
        for j in range(T[1]):
            print("
        print()

    print()

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

def main():
    h,w=list(map(int,input().split()))
    while (h,w)!=(0,0):
        row = "
        for _ in range(h):
            print(row)
        print()
        h,w=list(map(int,input().split()))

main()

Solution (Python):
while True:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        s = ""
        for j in range(W):
            s = s + "
        print(s)
    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):
Rect = []
cnt = 0
while True:
    H, W = map(int, input().split())
    if (H, W) == (0, 0):
        break
    Rect.append((H, W))
    cnt += 1



for i in range(cnt):
    for _ in range(Rect[i][0]):
        print("
    print()

Solution (Python):

while True:
    i = input()
    W,H = map(int, i.split())
    
    if W == 0 and H == 0:
        break
    
    while W > 0:
        x = 0
        while H != x:
            print("
            x += 1
        print("")
        W -= 1
    
    print  ("")

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

Solution (Python):
import sys
  
for s in sys.stdin:
    h,w = [ int(x) for x in s.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):
ans = ""
for i in range(10000):
    H,W = map(int,input().split())
    if H==0 and W == 0:
        break
    else:
        for j in range(H):
            for _ in range(W):
                ans += "
            print(ans)
            ans = ""
            if j == H-1:
              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(r"
        print()
    print("")

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

Solution (Python):
while True:
    a,b = map(int,input().split())
    if a == 0 or b == 0:
        break
    else:
        for ss in range(a):
            w = ''
            for s in range(b):
                w += '
            print(w)
        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 = [int(i) for i in 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 or 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(0, H) :
		str = '';
		for j in range(0, W) :
			str += '
		print(str)

	print();

Solution (Python):
while True:
    l = list(map(int, input().split()))
    a,b = l[0],l[1]
    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 == 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 _ in range(h):
        print("
    print("")

Solution (Python):
while True:
    line=input().rstrip().split()
    h=int(line[0])
    w=int(line[1])
    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
    else:
        for u in range(h):
            for i in range(w):
                print("
            print()
        print()

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

Solution (Python):
judge = 1

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

Solution (Python):
import math
text=input().split()
for i,v in enumerate(text):
    text[i]=int(v)
while text[0] or text[1]:
    for i in range(text[0]):
        print('
    text=input().split()
    print()
    for i,v in enumerate(text):
        text[i]=int(v)

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

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

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

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

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

Solution (Python):


def main():
    while True:
        H, W = map(int, input().split())

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

        for i in range(H):
            print("

        print()

if __name__ == "__main__":
    main()

Solution (Python):

h = 1
w = 1

while (h != 0):
    l = list(map(int,input().split()))

    h = l[0]
    w = l[1]
    for target_list in range(h):
        for target_list 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
    else:
        for j in range(H):
            for i in range(W):
                print("
            print()
        print('\n', end='')

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 and b==0:
        break
    else:
        for i in range(a):
            print("
        print("")

Solution (Python):
import sys
a = []
for l in sys.stdin:
    a.append(list(map(int,l.split())))
    
for i in a:
  if i[0]==0 and i[1]==0:
    break
  for x in range(i[0]):
      print('
  print('\r')

Solution (Python):
while True:

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

    for i in range(W):
        for j in range(H):
            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=map(int,input().split())

    if h==0 and w==0:
        break

    for i in range(h):
        wid=''
        for l in range(w):
            wid+='
        print(wid)
    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()