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):
def sh(num):
    for n in num:
        out(n)
def out(n):
    number = []
        
        
    for i in range(n[1]):
        number.append("
    for i in range(n[0]):
        print(''.join(number))
    print('')

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

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

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

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

H,W=(int(i) for i in input().split())
while H!=0 or W!=0:
    for i in range(H-1):
        S=""
        for j in range(W):
            S+="
        print(S)
    S=""
    for j in range(W):
        S+="
    print(S, end="")
    H,W=(int(i) for i in input().split())
  
    print("\n")

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

Solution (Python):
import sys

while True:
    [h, w] = [int(num) for num in input().split()]
    if (h == 0) & (w == 0):
        break

    for i in range(h):
        for j in range(w):
            sys.stdout.write('
        print()
    print()

Solution (Python):


import sys, math, os


PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


while True:
    H, W = [int(_) for _ in input().split()]
    if H == W == 0:
        break
    for _ in range(H):
        print('
    print()

Solution (Python):
dataset = []
while True:
    s = list(map(int,input().split()))

    if sum(s) == 0:
        break
    else:
        dataset.append(s)

for data in dataset:
    for cnt_r in range(data[0]):
        for cnt_c in range(data[1]):
            print('
        print()
    print()

Solution (Python):
while True:

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

Solution (Python):
while 1:
	H,W=map(int,raw_input().split())

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

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

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

Solution (Python):

def print_rect(h, w):
    line = "
    for i in range(h):
        print(line)
    print("")

while True:
    h, w = map(int, input().split())
    if h == w == 0:
        break
    else:
        print_rect(h, w)

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

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

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

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

Solution (Python):
I = input().split()
H = int(I[0])
W = int(I[1])
h = H
w = W
while H != 0 or W != 0:
    while h > 0:
        w = W
        while w > 0:
            print('
            w -= 1
        print()
        h -= 1
    I = input().split()
    H = int(I[0])
    W = int(I[1])
    h = H
    w = W
    print()

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

        if H == 0 | W == 0:
                break

        countW, countH = 0, 0

        while True:
                if countH == H:
                        break
                while True:
                        if countW == W:
                                print('\n',end='')
                                countW = 0
                                break
                        print('
                        countW += 1
                countH += 1
        print()

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

Solution (Python):
while(True):
	HW=list(map(int,input().split()))
	if HW==[0,0] : break
	for i in range(HW[0]):
		for k in range(HW[1]-1):
			print("
		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:
    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:
        quit()
    for i in range(h):
        print('
    print()

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

Solution (Python):
while True:
    s = input()

    if s == "0 0":
        break
    else:
        h, w = list(map(int, s.split()))
        t = "
        for _ in range(h):
            print(t)
        print()

Solution (Python):
while True:
        H, W = map(int, input().split())
 
        if H == 0 | W == 0:
                break
 
        countW, countH = 0, 0
 
        while True:
                if countH == H:
                        break
                while True:
                        if countW == W:
                                print('\n',end='')
                                countW = 0
                                break
                        print('
                        countW += 1
                countH += 1
        print()

Solution (Python):
w_numbers=[]
h_numbers=[]
while True:
    rect=[]
    rect=input().split()
    rect[0]=int(rect[0])
    rect[1]=int(rect[1])
    if rect[0]==0 and rect[1]==0:
        break
    h_numbers.append(rect[0])
    w_numbers.append(rect[1])

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

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

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

Solution (Python):
import sys
for line in sys.stdin:
    H, W = map(int, line.split())
    if H == W == 0:
        break
    for i in range(H):
        for j in range(W):
            print('
        print()
    print()

Solution (Python):
H,W = map(int, input().split())
while not (H == 0 and W == 0):
 for h in range(H):
   print("
 print()
 H,W = map(int, input().split())

Solution (Python):

array = []
while True:
    value = input().split()
    value = [int(x) for x in value]
    if value[0] == 0 and value[1] == 0:
        break
    else:
        array.append(value)

for i in range(0, len(array)):
    for j in range(0, array[i][0]):
        for k in range(0, array[i][1]):
            print("
        print("")
    print("")

Solution (Python):
while 1:
    m, n = input().split()
    if m == "0" and n == "0":
        break
    for i in range(int(m)):
        print("
    print()

Solution (Python):

while(True):
	h, w = [int(x) for x 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 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 W == 0 and H == 0:
        break
  
    for i in range(H):
        print ('
    print()

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

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

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

Solution (Python):
h = []
w = []

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

k = 0

while k != len(h):
    for i in range(h[k]):
        for j in range(w[k]):
            print("
        print("\n", end="")
    print("\n", end="")
    k += 1

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 == w == 0:
        break
    print(('

Solution (Python):
import sys
def main():
    for line in sys.stdin:
        H, W = map(int, line.split())
        if H == 0 and W == 0:
            break
        else:
            for _ in range(H):
                for _ in range(W):
                    print("
                print()
            print()


if __name__ == "__main__":
    main()

Solution (Python):
import sys

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

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

Solution (Python):

flag=0
while flag==0:
    a,b=[int(i) for i in input().split()]
    if a==0 and b==0:
        flag=1
        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
 else:
  print('\n'.join(['

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, raw_input().split())
   if h == w == 0:
       break
   for i in range(h):
       print('
   print('')

Solution (Python):
import sys
lines=sys.stdin.readlines()
for line in lines:
    H,W=map(int,line.split())
    if H == W == 0: break
    for i in range(H):
        print('
    print('')

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

        print('')
        

main()

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

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

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

Solution (Python):
import sys

def main():
    lines = sys.stdin.readlines()

    for line in lines:
        if len(line) == 0:
            continue
        
        
        line = line.strip('\n')
        elems = line.split(" ")
        
        if elems[0] == "0" or elems[1] == "0":
            continue
        for height_ind in range(int(elems[0])):
            width_str = ""
            for width_ind in range(int(elems[1])):
                width_str = width_str + "
            print width_str
        print("")

if __name__ == "__main__":
    main()

Solution (Python):

"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_5_A&lang=jp

"""
import sys
from sys import stdin
input = stdin.readline


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

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


if __name__ == '__main__':
    main(sys.argv[1:])

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

Solution (Python):
while True:
  WH = input().split()
  if WH[0] == '0': break
  for i in range(int(WH[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==W==0:
        break
    for i in range(H):
        print('
    print()

Solution (Python):



import math

def main():
    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('')

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):
import sys
w=""
a=[]
while (w!="0 0"):
    w=input()
    a.append(w)
a.pop()
for st in a:
    b=st.split()
    h=int(b[0])
    w=int(b[1])
    for i in range(h):
        for j in range(w):
            sys.stdout.write("
        sys.stdout.write("\n")
    sys.stdout.write("\n")

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

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

if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

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

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

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

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

while (H!=0 or W!=0):
    for i in range(H):
        print(W*"
    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):
class square():
    
    def __init__(self, x,y):
        self.x = x
        self.y = y
        
    def draw(self):
        
        for i in range(0,self.x):
            for i in range(0,self.y):
                print('
            print('') 
        print('')
        
while True:
    H,W = map(int,input().split())
    
    if H == 0 and W == 0:
        break
        
    s = square(H,W)
    s.draw()

Solution (Python):
import sys

class Rect():
    def __init__(self,w,h):
        self.w = w
        self.h = h

    def draw(self):
        for i in range(self.w):
            for j in range(self.h):
                sys.stdout.write("
            sys.stdout.write("\n")
        sys.stdout.write("\n")

def main():
    data = []
    while 1:
        n = input().split()
        w = int(n[0])
        h = int(n[1])

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

        data.append(Rect(w,h))

    for num in data:
        num.draw()

if __name__ == "__main__":
    main()

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

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

Solution (Python):

import sys
while True:
    array = map(int, raw_input().split())
    if array[0] == 0 and array[1] == 0:
        break
    for i in range(array[0]):
        for j in range(array[1]):
            sys.stdout.write('
        else:
            print
    print

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

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

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

Solution (Python):
def build_line(width, i):
    s = ''
    while len(s) < width:
                s += '
    return s

while True:
    h,w = [int(i) for i in input().split()]
    if not (h and w):
        break
    for i in range(h):
        print(build_line(w, i))
    print()

Solution (Python):
hight = []
width = []
num = 0

while True:
    H,W = list(map(int,input().split()))
    if H==0 and W==0:
      break
    else:
      hight.append(H)
      width.append(W)
      num += 1

for i in range(num):
    for j in range(hight[i]):
      for k in range(width[i]):
       print("
      print("")
    print("")

Solution (Python):
a1 = [int(x) for x in input().split()]

while a1[0] != 0:
    for i in range(a1[0]):
        print("
    print("")
    a1 = [int(x) for x in 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):
while True:
    arr = input().split()
    H = int(arr[0])
    W = int(arr[1])

    if H == 0 and W == 0:
        break
    else:
        s = ''
        for j in range(W):
            s += '
        for i in range(H):
            print(s)

        print('')

Solution (Python):
while True:
    H, W = map(int, 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, W) == (0, 0):
        break
    print(*("

Solution (Python):
def printnum(x):
	l = ''
	for _ in range(x):
		l += '
	return l
		
while True:
	try:
		line = input()
		if line != '0 0':
			dim = line.split(' ')
			dim = list(map(int, dim))
			
			for _ in range(dim[0]):
				print(printnum(dim[1]))
			print('')
			
		else:
			break
		
	except EOFError:
		break

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):
from __future__ import print_function
while(1):
    x = raw_input()
    if(x == "0 0"):
        break
    x = x.split(" ")
    h = int(x[0])
    w = int(x[1])
    for i in range(0,h):
        for j in range(0,w):
            print("
        print("\n",end="")
    print("\n",end="")

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

    for i in range(H):
        print("

    print("")

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

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

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

Solution (Python):
from sys import stdin
for line in stdin:
    a, b = map(int, line.strip('\n').split(' '))
    if a == 0 and b == 0:
        break
    print('\n'.join(['

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):
buffer = []
while True:
    x,y = map(int, input().split())
    if x==0 and y==0:
        break
    buffer.append([x,y])
for n in range(len(buffer)):
    for r in range(buffer[n][0]):
        for c in range(buffer[n][1]):
            print('
        print('')
    print('')

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

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

Solution (Python):
for i in range(10000):
    H,W=input().split()
    if H=="0" and W=="0":
        break
    s = ""
    for j in range(int(W)):
        s = s + "
    for k in range(int(H)):
        print(s)
    print("")

Solution (Python):



import sys

while True:
    h, w = map(int, sys.stdin.readline().split())
    if h == 0  and w == 0:
        break

    line = '
    for row in range(h):
        print(line)
    print()

Solution (Python):
while 1:
	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):
H, W = [int(i) for i in input().split()]
while (H != 0) and (W != 0):
    S = ('
    print(S)
    H, W = [int(i) for i in input().split()]

Solution (Python):
import sys

for line in sys.stdin.readlines():
    data = line.rstrip('\n').split()
    height = data[0]
    width = data[1]
    
    if height=='0' and width=='0':
        break
    for h in range(int(height)):
        for w in range(int(width)):
            print('
        print('')
    print('')

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

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

	[print('
	print()

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

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

Solution (Python):


if __name__ == '__main__':
    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,input().split())
    if a==0 and b==0:break
    for i in range(a):
    	print("
    print()

Solution (Python):
ans = ''
while True:
    h, w = map(int, input().split(' '))
    if h == 0 and w == 0:
        break
    else:
        i = 0
        s = ''
        while i < h:
            s += '
            s += '\n'
            i += 1
        ans += s + '\n'
if ans != '':
    print(ans[:-1])

Solution (Python):
a=[]
i=0
while 1:
    l=input().split()

    h=int(l[0])
    w=int(l[1])

    if h==0 and w==0:
        break
    else:
        a.append(h)
        a.append(w)
        i=i+2
m=0
while m<i:
    while a[m]>0:
        print(a[m+1]*"
        a[m]=a[m]-1
    print("")
    m=m+2

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 i in range (a):
        print('
    print()

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

Solution (Python):
h = 1
w = 1
while True:
	nums = list(map(int, input().split(" ")))
	h = nums[0]
	w = nums[1]
	if h == 0 and w == 0:
		break

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

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

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

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

l = []
for i in sys.stdin:
    l.append(i)

for i in range(0,len(l)):
    l[i] = l[i].split()

for i in range(0,len(l)-1):
    for j in range(0,int(l[i][0])):
        print('
    print()

Solution (Python):
a = []
b = []
flag = 0
while True:
    H,W = map(int,raw_input().split())
    if H == 0 and W == 0:
        break
    a.append(H)
    b.append(W)
    flag+=1

for k in range(0,flag):
    ans = ""
    for i in range(b[k]):
        ans+="
    for j in range(a[k]):
        print ans
    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(0,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 i in range (a):
        print('
    print()

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

Solution (Python):
H = []
W = []
while(True):
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    else:
        H.append(x)
        W.append(y)
for i in range(len(H)):
    for j in range(H[i]):
        if j+1 == H[i]:
            print(W[i]*"
        else:
            print(W[i]*"

Solution (Python):
a = 0
while a<=300:
    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:
    n = list(map(int, input().split()))
    if n[0] == 0 & n[1] == 0:
        break

    for i in range(n[0]):
        for j in range(n[1]):
            if j == n[1] - 1:
                print("
            else:
                print('

    print()

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

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

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

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

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

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

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

    print()