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 draw_square(h, w):
    for i in range(h):
        a = ""
        for j in range(w):
            a += "
        print a

while 1:
    HW = raw_input().split()
    H = int(HW[0])
    W = int(HW[1])

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

    draw_square(H, W)
    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):
        print "

    print ""

Solution (Python):
import sys

while True:
    data = sys.stdin.readline().strip().split(' ')
    h = int(data[0])
    w = int(data[1])
    if h == 0 and w == 0:
        break
    
    for i in range(h):
        for j in range(w):
            print('
        print('')
        
    print('')

Solution (Python):
import sys

while 1:
    H,W = map(int, raw_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:
                sys.stdout.write("

        if i == H-1:
            print ""

Solution (Python):
def rect(h, w):
    while h > 0:
        print('
        h -= 1
    print()
    return

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

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

Solution (Python):

import math

def PR(a):
    for k in range(len(a)):
        area = ""
        H = int(a[k].split(" ")[0])
        W = int(a[k].split(" ")[1])
        if H == 0 and W == 0:
            break
        for j in range(H):
            for i in range(W):
                area += "
            print(area)
            area = ""
        print("")

if __name__=="__main__":
    a = []
    for i in range(300):
        a.append(input())
        if a[i] == "0 0":
            break
    PR(a)

Solution (Python):
while True:
  hw = [int(x) for x in input().split()]
  h, w = hw[0], hw[1]

  if h == 0 and w == 0:
    break
  for hh in range(h):
    for ww in range(w):
      print('
    print('')
  print('')

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


for i in range(len(a)):
	H,W = a[i]
	for i in range(H):
		print("
	print("")

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

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

Solution (Python):
import sys

while True:
    
    ins = input().split()
    h = int(ins[0])
    w = int(ins[1])

    if h == 0 and w == 0:
        break
        
    for i in range(h):
        for j in range(w-1):
            sys.stdout.write("
        print("
        
    print("")

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

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

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

Solution (Python):
while True:
    x = input().split()
    x_int = [int(i) for i in x]

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

Solution (Python):

H,W=map(int,input().split())

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

Solution (Python):
while(True):
    H, W = map(int, input().split())
    if(H == W == 0):
        break
    first = False
    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):
if __name__ == "__main__":
	lis = []
	while True:
		a, b = map( int, input().split() )
		if a == b == 0:
			break
		lis.append([a,b])
	for i in lis:
		for j in range(i[0]):
			print('
		print()

Solution (Python):
while True:
  h, w = [int(n) for n in input().split()]
  if h == 0 and w == 0:
    quit()

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

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

Solution (Python):
import sys

for line in sys.stdin:
    [H,W] = [int(x) for x in line.split()]
    if [H,W] == [0,0]:
        break
    print( ("

Solution (Python):
while True:
    x = [int(z) for z in input().split(" ")]
    if x[0] == 0 and x[1] == 0: break
    for h in range(0,x[0]):
        for w in range(0,x[1]):
            print("
        print("\n", end="")
    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 = [int(x) for x in input().split(" ")]
    if H == 0 and W == 0: exit()
    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 x in range(0, a):
        print("
    print("")

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

Solution (Python):
matrix = []
while True:
    values = input()
    if '0 0' == values:
        break
    matrix.append([int(x) for x in values.split()])

for height, width in matrix:
    for i in range(height):
        print('
    print()

Solution (Python):
import sys

l = sys.stdin.readlines()[:-1]
for i in l:
    h,w = map(int,i.strip().split())
    print(("

Solution (Python):
import sys

for i in sys.stdin.readlines()[:-1]:
    h,w = map(int,i.strip().split())
    print(("

Solution (Python):
if __name__ == '__main__':
    while True:
        data = [int(x) for x in input().split(' ')]
        H = data[0]
        W = data[1]
        assert  0<=H<=300 and 0<=W<=300, "invalid input"

        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:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    print("\n".join(["".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):
x=[]
y=[]
count=0
while True:
    i,j=map(int,raw_input().split())
    if (i,j)==(0,0):
        break
    count+=1
    x.append(i)
    y.append(j)

for i in range(count):
    for j in range(x[i]):
        print('
    print('')

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

Solution (Python):
while 1:
    H,W=[int(i) for i 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 == 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 not h and not w:
        break
    print('\n'.join(['

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

while True:
    h, w = map(int, input().split())
    if (h > 0 and h <= 300) and (w > 0 and w <= 300):
        listed = []
        listed.append(h)
        listed.append(w)
        dataset.append(listed)
    else:
        break

for listed in dataset:
    h = listed[0]
    w = listed[1]

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

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

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

while True:
    h, w = map(int, input().split())
    if (h > 0 and h <= 300) and (w > 0 and w <= 300):
        listed = []
        listed.append(h)
        listed.append(w)
        dataset.append(listed)
    else:
        break

for listed in dataset:
    h = listed[0]
    w = listed[1]

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

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

Solution (Python):
'''
ITP-1_5-A
 ????????¢?????????
??????H cm ?????? W cm ???????????¢?????????????????°?????????????????????????????????
1 cm ?? 1cm ???????????¢??? '
???Input
??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????
H W
H, W ?????¨?????? 0 ?????¨????????\?????????????????¨????????????
???Output
????????????????????????????????????H ?? W ?????? '
?????????????????????????????????????????????????????\??????????????????
'''

import sys

for line in sys.stdin:
    
    H, W = map(int, line.split())
    if H == 0 and W == 0:
        break
    
    print(('

Solution (Python):


def reac(H,W):
    for i in range(H):
        for l in range(W):
            print('
        print('')
            
data = []
while True:
    try:
        di = input()
        if di == '0 0':
            break
        data.append(di)
    except:
        break

for i in range(len(data)):
    x = data[i]
    h = x.split()
    reac(int(h[0]),int(h[1]))
    print('')

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

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

Solution (Python):
list = []

while True:
    H, W = [int(i) for i in input().split()]
    if H == 0 and W == 0:
        break
    list.append([H, W])

for i in range(len(list)):
    for j in range(list[i][0]):
        for k in range(list[i][1]):
            print('
        print()
    print()

Solution (Python):


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

Solution (Python):
import sys
for l in sys.stdin:
  H, W = map(int,l.split())
  if H == 0 and W == 0:
    break
  for h in range(H):
    print (W * '
  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):
        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
    x = "
    for i in range(H):
        print(x)
    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):
import sys
while 1:
	H,W=map(int,raw_input().split())
	if H==0 and W==0:
		break;
	else:
		for x in range(H):
			for y in range(W):
				sys.stdout.write('
			sys.stdout.write('\n')
	sys.stdout.write('\n')

Solution (Python):


import sys


def string_to_list_spliter():
    h, w = [int(i) for i in sys.stdin.readline().split()]
    return h, w


def generate_ractangle(h, w):
    rect = ''
    for i in range(h):
        for j in range(w):
            rect += '
        rect += '\n'
    return rect


def main():
    while True:
        h, w = string_to_list_spliter()
        if h == 0 and w == 0:
            break
        print(generate_ractangle(h, w))


if __name__ == '__main__':
    main()

Solution (Python):
while 1:
    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_rectangle(h, w):
    """
    h: int
    w: int
    outputs rectangle using '

    >>> print_rectangle(3, 4)
    
    
    
    >>> print_rectangle(5, 6)
    
    
    
    
    
    >>> print_rectangle(2, 2)
    
    
    """
    for i in range(h):
        print('


if __name__ == '__main__':
    
    

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

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

Solution (Python):
while True:
    height, width = [int(x) for x in input().split(" ")]
    if height == 0 and width ==0:
        break

    for h in range(height):
        print("{0}".format("

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

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

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

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

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

Solution (Python):
while True:
    H, W = [int(x) for x in input().split() if x.isdigit()]
    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
num = []
for i in sys.stdin:
    H, W = i.split()
    if H == W == '0':
        break
    num.append((int(H), int(W)))

for cnt in range(len(num)):
    for h in range(num[cnt][0]):
        for w in range(num[cnt][1]):
            print('
        print()
    print()

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

    print()

Solution (Python):
array = []
while True:
    n = input()
    if n == "0 0":
        break
    array.append(n.split())
for i in range(len(array)):
    for i2 in range(int(array[i][0])):
        for i3 in range(int(array[i][1])):
            if i3 == int(array[i][1])-1:
                print("
            else:
                print("
    print("")

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

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

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

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

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

Solution (Python):
while True:
        x,y = map(int,raw_input().split())
        if x==0:
            break
        else:
            for i in xrange(x):
                print y*"
            print ""

Solution (Python):
import sys
import os


for line in sys.stdin:
    H, W = map(int, line.split())
    if H == 0 and W == 0:
        break
    print(('

Solution (Python):


import sys
import os


def rect(w, h):
    row = '
    print(row * h)

for s in sys.stdin:
    H, W = list(map(int, s.split()))
    if W == H == 0:
        break
    else:
        rect(W, H)

Solution (Python):


list = []

while True:
    num = input().rstrip().split(" ")
    if (int(num[0]) == 0) and (int(num[1]) == 0):
        break
    list.append(num)

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

Solution (Python):
while True:
    H,W = map(int,input().split())
    if 1 <= H and W <= 300:
        print(H * ((W * ('
    else:
        break

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

Solution (Python):
H=1
W=1
while H!=0 or W!=0:
	H,W = [int(i) for i in input().split()]
	if H!=0 or W!=0:
		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 i in range(H):
        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):
import sys
for i in sys.stdin.readlines(): 
    nums = list(map(int,i.split()))
    h = nums[0]
    w = nums[1]
    if h == 0 and w == 0:
        break
    for j in range(h):
        print("
    print("")

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

Solution (Python):


 
def func():
    result=""
    while(True):
        try:
            line = input().rstrip()
            numbers = line.split(" ")
            for i,item in enumerate(numbers):
                numbers[i]=int(item)
        except:
            print("input error")
            return -1
         
        if( (numbers[0] > 0) and (numbers[1] > 0) ):
            for i in range(numbers[0]):
                result += "
            result += "\n"
        elif( (numbers[0] == 0) and (numbers[1] == 0) ):
            break
        else:
            print("input error")
            return -1
             
    print(result[:-1])
 
func()

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
  rect=('
  print(rect)

Solution (Python):
rectArray = []

h, w = input().split()
h = int(h)
w = int(w)

while h != 0 and w != 0:
    rectArray.append([h, w])
    h, w = input().split()
    h = int(h)
    w = int(w)

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

Solution (Python):
while True:
    num = [int(i) for i in input().split(" ")]
    H = num[0]
    W = num[1]
    if H == 0 and 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(h):
        print'
    print

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

Solution (Python):

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

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

Solution (Python):
from sys import stdin

for line in stdin:
    H, W = map(int, line.rstrip().split(' '))
    if 0 == H == W:
        break

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

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

Solution (Python):
H,W = map(int, input().split())
L = []
while H != 0 or W != 0:
 L.append([H, W])
 H,W = map(int, input().split())

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

for (H, W) in L:
 draw(H,W)

Solution (Python):
import sys
while 1:
    H,W = map(int,sys.stdin.readline().split())
    if H == W == 0:
        break
    print(('

Solution (Python):
while 1 :
    try:
        h,w=map(int,input().split())
        
        if( h==0 and w==0 ): 
            break
        else:
            for hi in range(h):
                print("
            print() 
        if( h==0 and w==0 ): break
    except (EOFError):
        
        break

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

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

Solution (Python):
while True:
    s = input().split(" ")
    H = int(s[0])
    W = int(s[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("")

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

Solution (Python):

h = 1
w = 1

while h+w != 0:
    h, w=input().rstrip().split(" ")
    h = int(h)
    w = int(w)
    if h == 0:
        if 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):
		x = ""
		for j in range(W):
			x += "
		print(x)
	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):
figure = ''
height, width = [int(x) for x in input().split()]
while height or width:
    side = ('
    rect = (side * height) + '\n'
    figure += rect
    height, width = [int(x) for x in input().split()]
 
print(figure[:-1])

Solution (Python):
judge = True

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

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

Solution (Python):
while True:
    H, W = map(int, input().split())
    if not(H or W):
        break
    print(('

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

    for h in range(H):
        for w in range(W):
            if w == W - 1:
                print("
            else:
                print("
    print()

Solution (Python):

loop = 1
while(loop):
    l = input().strip().split()
    H = int(l[0])
    W = int(l[1])
    if(H == 0 and W == 0):
        break
    else:
        for y in (range(H)):
            str = "
            print(str)
        print()

Solution (Python):


ar = []
while True:
  tmp = [int(i) for i in input().split()]
  if tmp == [0,0]:
    break
  else:
    ar.append(tmp)

for i in range(len(ar)):
  for j in range(ar[i][0]):
    for k in range(ar[i][1]):
      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:
    y,x=map(int, raw_input().split())
    if x==y==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 i in range(H):
        print('
    print('')

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

Solution (Python):
H = ''
W = ''
i = j = 0

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

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

  while i < H:
    print('
    i += 1
  i = 0
  print()

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

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

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

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

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

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

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

Solution (Python):
while True:
	h,w = [int(s) for s in input().split(' ')]
	if h==0 and w==0:
		break
	else:
		low = '
		rectangle = (low+'\n') * h
		print(rectangle)

Solution (Python):
while True:
    tate, side = map(int, input().split())
    if tate == side == 0 : break
    print((side * "

Solution (Python):
import sys

for line in sys.stdin:
  H, W = map(int, line.split())

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

  for _ in range(H):
    print( '

  print("")

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

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

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

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

Solution (Python):
while True:
	H,W=[int(i)for i in input().split()]

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

Solution (Python):
while True:
    h, w = map(int, raw_input().split())
    if h == 0 and w == 0:
        break
    else:
        for i in range(h):
            temp = list()
            for j in range(w):
                temp.append('
            print("".join(i for i in temp))
        print("")

Solution (Python):
flg = False
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("\n", end="")
    print("\n", end="")

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):
for i in range(100000):
    x = input().split(" ")
    h = int(x[0])
    w = int(x[1])
    if h + w == 0:
        break
    for j in range(h):
        for k in range(w):
            print("
        print("")
    print("")