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())
  for j in range(H):
    for i in range(W):
      print("
    print()
  if H == 0 and W == 0:
        break
  
  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):
import sys

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):
        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):



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):
  height,width = map(int,input().split())
  if height == 0 and width == 0 :
    break
  else:
    for i in range(height):
      for j in range(width):
        print("
      print("")
    print("")

Solution (Python):
import sys

input = sys.stdin.readline

def main():
    while True:
        h, w = map(int, input().split())
        if w == 0 and h == 0:
            sys.exit()
        for i in range(h):
            print("
        print("")
    
if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

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

Solution (Python):
while 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):

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


def read_data():
    ls=[]
    while True:
        s,t=tuple(input().split())
        
        H=int(s)
        W=int(t)
        
        if H==0 and W==0:
            break
        
        ls.append((H,W))
        
    return ls


def draw_all_rect(ls):
    for W,H in ls:
        draw_rect(W,H)
        print("")


ls=read_data()
draw_all_rect(ls)

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

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

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

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

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

    for i in range(H):
        print('

    
    print()

Solution (Python):
lis=[]
while True:
	w,h=[int(x) for x in input().split()]
	if w==0 and h == 0:
		break
	else:
		lis.append([w,h])
for x in lis:
	w,h=x[1],x[0]
	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 _ 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) :
        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):
hw = []
buff = []

while True:
    buff = list(map(int, input().split()))
    if [0, 0] == buff:
        break
    else:
        hw.append(buff)

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

Solution (Python):
for i in range(1,301):
    h,w=map(int,input().split())
    if h==0 and w==0:
        break
    else:
        for j in range(h):
            a='
            print(f'{a * w}')
    print()

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:
    HW = input()
    H, W = map(int, HW.split())
    if H == 0 and W == 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 :
    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):
a=[]
b=[]
while True:
    x,y=map(int,input().split())
    if x==0 and y==0:
        break
    a.append(x)
    b.append(y)

for i in range(len(a)):
    for i2 in range(a[i]):
        print('
    print('')

Solution (Python):
for e in iter(input, "0 0"):
    H, W = map(int, e.split())
    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):
i=0
while True:
    H,W=map(int,input().split())
    if H==0 and W==0:
        break
    for j in range(H):
        for k in range(W):
            print("
        print("\n",end="")
    print("\n",end="")
    i+=1

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

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

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

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

Solution (Python):
l = []

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

cnt = 0
l_size = len(l)-1

while(cnt < l_size):

    H = l[cnt][0]
    W = l[cnt][1]

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

    cnt += 1

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

    for h in range(0, height):
        for w in range(0, 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:
    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()
        continue

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

Solution (Python):
while True:
    H,W=map(int,input().split())
    if (H,W)==(0,0):
        break
    for 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 tate in range(1,H+1):
            for yoko 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 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 H in range(1,H+1):
        for W 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 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):
        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 y 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):
listH=[]
listW=[]
while True:
   H,W=(int(x) for x in input().split())
   if H!=0 or W!=0:
      listH.append(H)
      listW.append(W)
   else:
      break

for i in range(len(listH)):
   for _ in range(listH[i]):
      for j in range(listW[i]):
         print("
      print()
   print()

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

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

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("\n", end="")

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

Solution (Python):
while True:
    try:
        a=list(map(int,input().split()))
        if a[0]==0:
            pass
        else:
            for i in range (a[0]):
                for j in range(a[-1]):
                    print('
                print()
            print()
        
    except:
        break;

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

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

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

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

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

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

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

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

Solution (Python):
j = 0
while j < 10**10:
    h, w = map(int, input().split()) 
    if h == 0 and w == 0:
        break
    j = j + 1
    
    i = 0
    while i < h:
        i = i + 1
        print('
    print()

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

Solution (Python):
list = []
while True:
    a = [int(i) for i in input().split()]
    if a[0] == 0 and a[1] == 0:
        break
    else:
        list.append(a)

for i in range(len(list)):
    for j in range(list[i][0]):
            print("
    print("")

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

Solution (Python):



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

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

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

Solution (Python):
for e in list(open(0))[:-1]:h,w=map(int,e.split());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 == 0 and W == 0:
        break
    else:
        for j in range(H):
            for i in range(W):
                print("
            print()
        print()

Solution (Python):


while True:
    H , W = map(int,input().split())
    if W == 0 and H == 0:
        break
    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
    
    i=1
    while i<=H:
        a="
        print(W*a)
        i+=1
    print("")

Solution (Python):
def test_case():
    while True:
        a, b = map(int, input().split())
        if a == 0 and b == 0:
            break
        side = ''.join(['
        for _ in range(a):
            print(side)
        print('')


if __name__ == "__main__":
    test_case()
1

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 _ in range(h):
        print('
    print("")

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

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

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

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

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

Solution (Python):
while True:
    H,W=map(int,input().split())
    if 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):
            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 main():
    data = []
    while True:  
        h, w = [int(e) for e in input().split()]
        if h == w == 0:
            break
        else:
            data.append([h, w])

    for datum in data:
        line = "
        line = line + "\n"
        print(line * datum[0])


if __name__ == "__main__":
    main()

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

Solution (Python):
from sys import stdin

while True:
    H, W = map(int, stdin.readline().split())
    str = ''
    if H == 0 and W == 0:
        break
    else:
        str = ('
        print(str)

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

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

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

  for x in range(H):
    for y in range(W):
      print("
    print("")
  
  print("")

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


if __name__ == "__main__":
    main()

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:
    input_item = list(map(int, input().split()))
    if input_item == [0, 0]:
        break
    H.append(input_item[0])
    W.append(input_item[1])

for i in range(len(H)):
    h = H[i]
    w = W[i]
    for _ in range(h):
        print("
    print()

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

Solution (Python):
def p_s(x, y):
    for i in range(x):
        str = ''
        for j in range(y):
            str += '
        print(str)

    print()


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

Solution (Python):
while True:
    H,W = map(int,input().split())
    for i in range(H):
        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 i in range(H):
    for n in range(W):
      print("
    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):
INlist = []

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

for HW in INlist:
    H, W = HW[0], HW[1]
    for h in range(H):
        print('
    print()

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

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

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

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

Solution (Python):
while 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 j in range(H):
        for i in range(W):
            print("
        print()
    print()