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


def main():
    while True:
        H, W = [int(i) for i in sys.stdin.readline().split()]
        if H == 0 and W == 0:
            break
        width = '
        for i in range(W - 1):
            width += '
        for i in range(H):
            print(width)
        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):
c=0
i = 0
h = []
w = []
while c == 0:
    a = input().split()
    if int(a[0]) == 0:
        c = 1
    elif int(a[1]) == 0:
        c = 1
    else:
        h.append(a[0])
        w.append(a[1])
        i = int(i) + 1

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

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

Solution (Python):
b = []
c = []
while True:
    a = input().split()
    a[0] = int(a[0])
    a[1] = int(a[1])
    if a[0] == 0 and a[1] == 0:
        break
    else:
        b.append("
        c.append(a[0])
for i in range(len(c)):
    for j in range(c[i]):
        print(b[i])
    print("\n",end="")

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

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

Solution (Python):
while True:
    H, W = map(int, raw_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 j in range(W):
            print ('
        print ('')
    print ('')

Solution (Python):
def paint(h, w):
    print("\n".join(["

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

    paint(H, W)
    print()

Solution (Python):
ans = []


def paint(h, w):
    ans.append("\n".join(["


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

    paint(H, W)

print(("\n" * 2).join(ans), "\n", sep = "")

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

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

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

Solution (Python):




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

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

Solution (Python):
for e in iter(input, '0 0'):
    h, w = map(int, e.split())
    print(('

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

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

Solution (Python):
ans = []
for line in open(0).readlines():
    H, W = map(int, line.split())
    if not H:
        break
    ans.append((("
    ans.append("\n")
open(1, 'w').writelines(ans)

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):
    s = list(map(int, input().strip().split(' ')))

    if s[0] == 0 and s[1] == 0:
        break
    else:
        for i in range(s[0]):
            for j in range(s[1]):
                print("
            print()
    print()

Solution (Python):


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

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

Solution (Python):
import sys
h, w = map(int, input().split())
while h != 0:
    for _ in range(h):
        for _ in range(w):
            sys.stdout.write("
        print()
    print()
    h, w = map(int, input().split())

Solution (Python):
from sys import stdin

while True:
    H, W = [int(x) for x in stdin.readline().rstrip().split()]
    if H == 0 and W == 0:
        break
    else:
        for i in range(H):
            print("
        else:
            print()

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

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

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

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

    square = [['
    for row in square:
        print(''.join(row))
    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(i) for i in input().split()]
    if H == 0 and W == 0:
        break
    else:
        for j in list(range(1, H+1, 1)):
            for i in list(range(1, W+1, 1)):
                if i == W:
                    print("
                else:
                    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(1):
    h,w = [int(i) for i in input().split()]
    if h == 0 and w == 0:
        break
    for i in range(h):
        print("
    print("")

Solution (Python):
while True:
    i = list(map(int, input().split()))
    if i[0] == 0 and i[1] == 0:
        break
    else:
        for j in range(i[0]):
            for k in range(i[1]):
                print("
            print("\n", end='')
        print("\n", end='')

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

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

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

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

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

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

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

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

Solution (Python):
put = '
output = []
while True:
	data = list(map(int, input().split()))
	if data[0] == 0 and data[1] == 0:
		break
	output += [data]

for tmp in output:
	for h in range(tmp[0]):
		for w in range(tmp[1]):
			print(put, end="")
		print()
	print()

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

Solution (Python):
lines = []
colums = []

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

for H,W in zip(lines,colums):
  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, input().split())
    if h == 0 and w == 0:
        break
    width = ''
    for i in range(w):
        width += '
    for j in range(h):
        print(width)
    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):
c = []

def listcreate():
    global c
    c = []
    for y in range(a[0]):
        b = []
        for x in range(a[1]):
            b.append("
        c.append(b)
    return

def listdraw():
    global c
    for y in range(len(c)):
        for x in range(len(c[0])):
            print(c[y][x], end='')
        print()
    return

for i in range(10000):
    a = list(map(int,input().split()))
    if sum(a)==0:
        break
    listcreate()
    listdraw()
    print()

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

    for _ in range(h):
        for _ in range (w):
            print("
        print("")
    print("")

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

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

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

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

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

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

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

	[print(*["
	print()

Solution (Python):
Flag = True
data = []
while Flag:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        Flag = False
    else:
      data.append((H, W))


for (H, W) in data:
    for i in range(H):
        print('
    print('\n', end="")

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
from sys import stdin

while True:
    h, w = (int(n) for n in stdin.readline().rstrip().split())
    if h == w == 0:
        break

    for _ in range(h):
        print("

    print()

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

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

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

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

Solution (Python):
ans=[]

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

print('\n'.join(ans))

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

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

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

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

    for h in range(H):
        for w in range(W):
            if w == (W - 1):
                print('
                break
            print('
    print()

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys
line = sys.stdin.readline()
while line:
	H,W = map(int,line.split());
	if H == 0 and W == 0:
		break;
	for i in range(0,H):
		print "
	print ""
	line = sys.stdin.readline()

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

Solution (Python):

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

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

Solution (Python):
while True:
    h,w = tuple([int(x) for x in raw_input().split(" ")])
    if h==0 and w==0: break
    for _h in range(h):
        print "
    print ""

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

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

    for hc in range(H):
        [print('
        print()

    print()

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

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

    print()

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

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

    for hc in range(H):
        for wc in range(W):
            print('

        print()

    print()

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

    for hc in range(H):
        print('

    print()

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

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

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

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

    print((('

Solution (Python):
import sys

while(1):
    H, W = map(int, raw_input().split())
    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):
data_h = []
data_w = []
while True:
	h, w = (int(i) for i in input().split())
	if h == 0 == w:
		break
	else:
		data_h.append(h)
		data_w.append(w)




for count in range(len(data_h)):
	h = data_h[int(count)]
	w = data_w[int(count)]
	for i in range(h):
		for j in range(w):
			print('
		print('')
	print('')

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

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

Solution (Python):
import sys
while True:
    (H, W) = [int(i) for i in sys.stdin.readline().split()]
    if H == W == 0:
        break
    print(("

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

    print(('

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

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

Solution (Python):
def solve(h, w):
    line = ''.join(['
    [print(line) for i in range(h)]
    print()

if __name__ == '__main__':
    while True:
        h, w = [int(i) for i in input().split()]
        if h == w == 0: break
        solve(h, w)

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

Solution (Python):


while True:
    length,width = map(int,input().split())
    if (length,width) == (0,0):
        break
    for i in range(length):
        print('
    print()

Solution (Python):


while True:
    length,width = map(int,input().split())
    if (length,width) == (0,0):
        break
    for i in range(length):
        print('
    print()

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

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

Solution (Python):
import sys
x=y=1
while True:
	x,y=map(int,input().split())
	if x==0: break
	for i in range (1,x+1):
		for j in range (1,y+1):
			sys.stdout.write('
		print('')
	print('')

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

Solution (Python):
import sys

while True:
	nums = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 == nums[0] and 0 == nums[1]:
		break
	for i in range( nums[0] ):
		print( "
	print

Solution (Python):
import sys

while True:
	h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 ==h and 0 == w:
		break
	for i in range( h ):
		print( "
	print( "" )

Solution (Python):
import sys

while True:
	h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 ==h and 0 == w:
		break
	for i in range( h ):
		print( "
	print( "" )

Solution (Python):
import sys

while True:
	h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 ==h and 0 == w:
		break
	print( "{:s}\n".format( "

Solution (Python):
import sys

while True:
	h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 ==h and 0 == w:
		break
	print( "{:s}\n".format( "

Solution (Python):
while True:
	H,W=[int(i) for i in input().split(" ")]
	if H==W==0:
		break
	for h 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):
data = []
while 1:
	H, W = map(int, raw_input().split())
	if H == 0 and W == 0:
		break
	data.append([H, W])

for h, w in data:
	for i in xrange(h):
		print '
	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 1:
    m,n=map(int, raw_input().split())
    if n==m==0: break
    else: print (('

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

Solution (Python):
if __name__ == "__main__":
    while True:
        nums = map( int, raw_input().split())
        H = nums[0]
        W = nums[1]
        if H == 0:
            if W == 0:
                break

        s = ""
        j = 0
        while j < W:
            s += "
            j += 1

        i = 0
        while i < H:
            print s
            i += 1
        print

Solution (Python):
if __name__ == "__main__":
    ct = 0
    while True:
        nums = map( int, raw_input().split())
        H = nums[0]
        W = nums[1]
        if H == 0:
            if W == 0:
                break

        s = ""
        j = 0
        while j < W:
            s += "
            j += 1

        i = 0
        while i < H:
            print s
            i += 1
        print

Solution (Python):


while True:
    height, width = map(int, raw_input().split())
    if height + width == 0:
        break
    else:
        print '\n'.join(['

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 == 0 and W == 0:
      break
  print (("

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

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