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 = [int(x) for x in input().split(' ')]
    if H == 0 and W == 0: break

    for i in range(H):
        print('

    print('')

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

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

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

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

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

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

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

Solution (Python):
def numinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a
 
def main():
    while True:
        a = numinput()
        if a[0] == 0 and a[1] == 0: break
        H = a[0];  W = a[1]
        for i in range(H):
            bar = ""
            for j in range(W):
                bar += "
            if i < H - 1: print(bar)
            else: print(bar + '\n')
 
if __name__ == "__main__":
    main()

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

Solution (Python):
def print_fig(h, w):
    for _ in range(h):
        print("
    print("")

while True:
    x = input().split()
    w, h = int(x[0]), int(x[1])
    if (w, h) == (0, 0): break
    print_fig(int(x[0]), int(x[1]))

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

Solution (Python):
judge=True
while judge:
    N=list(map(int,input().split()))
    if N[0] + N[1] == 0:
        judge = False
    else :
        for i in range(0,N[0]):
            for j in range(0,N[1]):
                print("
            print("\n",end="")

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

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

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

Solution (Python):

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

	line = ''
	for i in range(W):
		line += '
	
	for i in range(H):
		print(line)

	print('')

Solution (Python):



import sys

if __name__ == '__main__':
    while 1:
        line = raw_input()
        if line == '0 0':
            break
        a, b = map(int, line.split())
        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 _ in range(H):
        print('
    print()

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):
for i in range (0,100000000):
    txt = input("")
    txt1,txt2 = txt.split(" ")
    a = int(txt1)
    b = int(txt2)
    if(a==0&b==0):
        break
    for i in range(0,a):
        for j in range(0,b):
            print("
        print("")
    print("")

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

Solution (Python):


inputEnd = 0
while inputEnd == 0:
    n = [int(i) for i in input().rstrip().split()]
    h = n[0]
    w = n[1]
    if h == 0 and w == 0:
        inputEnd += 1
    else:
        for i in range(h):
            for j in range(w):
                print('
            print()
        print()

Solution (Python):


def draw(h, w):
    for i in range(h):
        for j in range(w):
            print('
        print()
    return ""

inputEnd = 0
while inputEnd == 0:
    n = [int(i) for i in input().rstrip().split()]
    h = n[0]
    w = n[1]
    if h == 0 and w == 0:
        inputEnd += 1
    else:
        print(draw(h, w))

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

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

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

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

Solution (Python):
import math
def solve(numbers):
    s='
    for number in numbers:
        
        h=number[0]
        w=number[1]
        for i in range(h):
            string=s*w
            print(string)
        print()


def answer():
    numbers=[]

    while True:
        s = input().split()
        if s[0]=='0' and s[1]=='0':
            break
        numbers.append(list(map(int,s)))
       
    solve(numbers)


if __name__ =='__main__':
    answer()

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(h, w):
    for x in range(0, h):
        print("
    print()

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

    if h == w == 0:
        break;

    draw(h, w)

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

        if (H, W) == (0, 0):
            break
        elif H == 0 or W == 0:
            pass
        else:
            for i in range(H):
                print("
        print()

if __name__ == '__main__':
    main()

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

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

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

  for y in xrange(h):
    print '
  print

Solution (Python):
import sys
x = []
for line in sys.stdin:
    h,w = line.split()
    h,w = int(h), int(w)
    if h == 0 and w== 0: break
    x.append([h,w])

for i in range(len(x)):
    h, w = x[i]
    s = '
    for j in range(h): print s
    print

Solution (Python):
r=0
while r==0:
        l=""
        i=map(int,raw_input().split())
        if i[0]==i[1]==0:
                break
        while 0 < i[1]:
                l=l+"
                i[1]=i[1]-1
        while 0 < i[0]:
                print l
                i[0]=i[0]-1
        print

Solution (Python):



def main():
    while True:
        h, w = [int(x) for x in raw_input().split(" ")]
        if h == 0 and w == 0:
            break

        for x in range(h):
            print "
        print

if __name__ == '__main__':
    main()

Solution (Python):
from __future__ import division, print_function
from sys import stdin
for line in stdin:
    h, w = (int(s) for s in line.split())
    if h == 0 and w == 0:
        break
    for _ in range(h):
        print('
    print()

Solution (Python):
import sys
for line in sys.stdin:
    h, w = map(int, line.rstrip('\n').split(' '))
    if h == 0 and w == 0: break
    for i in range(h):
        print '
    print ''

Solution (Python):
while True:
    (m,n)=map(int, raw_input().split())
    if n==0 and m==0: break
    else: print (('

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

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

Solution (Python):
while 1:
    H, W = map(int,raw_input().split())
    if H + W == 0: break
    for h in range(H):
        print ''.join(['
    print ''

Solution (Python):
while 1:
    H, W = map(int,raw_input().split())
    if H + W == 0: break
    print (('

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

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

    for i in range(0, h):
        wid = ""
        for j in range(0, w):
            wid += "
        print wid
    print ""

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

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

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

Solution (Python):
while True:
    H, W = map(int, raw_input().split())
    if 0 <= H <= W <= 0:
        break
    print "\n".join("

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

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

Solution (Python):
from sys import stdin

while True:
    (h, w) = [int(i) for i in stdin.readline().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 1:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        exit()
    for i in range(h):
        for j in range(w):
            if j == w - 1:
                print('
            else:
                print('
    print()

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

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):
while(1):
    a = list(map(int,input().split()))
    if a[0]==0:
        break
    else:
        for i in range(a[0]):
            print("
        print("")

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

Solution (Python):

Input = []
while True:
    try:
        a,b = list(map(int, input().split()))
        Input += a,b
    except EOFError:
        break
    if a!=0:
        for j in range(a):
            for i in range(b):
                print("
            print()
        print()

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

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

Solution (Python):

while True:
    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
    else:
        print()

Solution (Python):
Input = []
while True:
    try:
        a,b = list(map(int, input().split()))
        Input += a,b
    except EOFError:
        break
    if a!=0:
        for j in range(a):
            for i in range(b):
                print("
            print()
        print()

Solution (Python):

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

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

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

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

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

Solution (Python):
def prect(h,w):
    for _ in range(h):
        print("
    print()

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

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

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

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

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

for i in range(len(data)):
  for x in range(data[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):
li = []
while 1:
    H,W = map(int, input().split())
    if H == W == 0:
        break
    
    li.append((H,W))
    
for l in li:
    for i in range(l[0]):
        print('
    print("")

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

    val1=input().split(" ")
    val2=[int(n) for n in val1]
    
    if val2 ==[0,0]:
        break
    else:
        for i in range(val2[0]):
            for j in range(val2[1]):
                print("
            print()
    print()

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

Solution (Python):
s=[]
while True:
    tmp=list(map(int,input().split()))
    if tmp==[0,0]:
        break
    else:
        s.append(tmp)

for si in s:
    H,W=si[0],si[1]
    for _ 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= list(map(int, input().split()))
    if H == 0 and W == 0:
        break
    x = "
    for i in range(H):
        print(x)
    print()

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

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

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

Solution (Python):

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

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

    for i in range(H):
        print('

    print()

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

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

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

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

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

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

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

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

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

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

i = 0
while i < len(l):
  j = 0
  while j < l[i][0]:
    k = 1
    ans = ""
    for k in range(l[i][1]):
      ans += "
      k += 1
    print(ans)
    j += 1  
  i += 1
  print("")

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

Solution (Python):




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

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

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

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

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

    print()

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

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

Solution (Python):
def printRetangle(height,width):
    for x in range(height):
        for i in range(width):
            print('
        print('')
    print('')

while True:
    x,y = map(int,input().split())
    if x ==0 and y==0:
        break;
    else:
        printRetangle(x,y)

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

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

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

def DrawRectangle(lst):
    drawn=[("
    for i in drawn:
        print (i)
    print("")

for i in a:
    DrawRectangle(i)

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:
    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 or 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):
whs = []

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

for i in range(len(whs)):
    h = whs[i][0]
    sqs = "
    for j in range(h + 1):
        if j == h:
            print("")
        else:
            print(sqs)

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

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