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

while True:
    l = [int(i) for i in input().split(' ')]
    if l[0] == 0 and l[1] == 0:
        break
    else:
        printRect(l[0],l[1])
        print()

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

    if H == W == 0 :
        break

    print((('

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

    for a in range(H):
        for b in range(W):
            print('
        print()
    print()

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

    [print('
    print()

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

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

    for a in range(H):
        for b in range(W):
            print('
        print()
    print()

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

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

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

    for a in range(H):
        for b in range(W):
            print('
        print()
    print()

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

Solution (Python):
import warnings
import sys




x = 0
while (x == 0):
	args = map(int, raw_input().split())

	h = args[0]
	w = args[1]

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

	for i in range(h):
			for j in range(w):
				sys.stdout.write("
			print ""
	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):
h = -1
w = -1

while (h != 0) and (w != 0):
  input = map(int, raw_input().split(" "))
  h = input[0]
  w = input[1]
  if (h == 0 and w == 0):
    break

  i = 0
  j = 0
  line = ""

  while j < w:
    line += "
    j += 1

  while i < h:
    print line
    i += 1

  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):
import sys
while True:
    (H, W) = [int(i) for i in sys.stdin.readline().split()]
    if H == W == 0:
        break
    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 = map(int, input().split())
    if W == H == 0:
        break;
    L="
    for i in range(H):
        print(L)
    print("")

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

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

    for a in range(H):
        for b in range(W):
            print('
        print()
    print()

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

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

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

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

Solution (Python):
from itertools import starmap
(lambda *_: None)(
    *map(print,
         starmap(lambda h, w: ''.join(['
         map(lambda ss: map(int, ss),
             map(str.split, iter(input, '0 0'))))))

Solution (Python):
i = list(map(int, input().split()))

H = i[0]
W = i[1]

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

    H = i[0]
    W = i[1]

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

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

Solution (Python):
a = []
while True:
    b = map(int, raw_input().split())
    if b == [0, 0]:
        break
    a.append(b)
for list in a:
    h, w = list
    k = 0
    l = 0
    x = []
    while k < w:
        x.append('
        k = k + 1
    while l < h:
        print ''.join(x)
        l = l + 1
    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 = map(int, raw_input().split())
    if (H + W) == 0:
        break
    printW = ['
    if W != 0:
        for h in range(H):
            print ''.join(printW)
    print ""

Solution (Python):
while True:
    H, W = map(int, raw_input().split())
    if (H + W) == 0:
        break
    printW = ['
    for h in range(H):
        print ''.join(printW)
    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 = map(int,raw_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
    sside=""
    for x in xrange(w):
        sside += "
    for x in xrange(h):
        print sside
    print

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

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

Solution (Python):
nums = []
while True:
    in_line = raw_input().split()
    h = int(in_line[0])
    w = int(in_line[1])
    if h == 0 and w == 0:
        break
    else:
        nums.append([h,w])
for num in nums:
    for i in range(0,num[0]):
        print "
    print ""

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

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

Solution (Python):
import sys

for v in iter(sys.stdin.readline,''):
    h,w = map(int,v.split())

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

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

Solution (Python):




import sys
io = sys.stdin

while True:
    arr = io.readline().split()
    h, w = int(arr[0]), int(arr[1])
    if h==0 and w ==0 : break

    for x in xrange(h):
        print "
    print

pass

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

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

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

Solution (Python):


import sys

rectangle = []
h,w = 1,1

while not(h == 0 and w == 0):
    h,w = map(int, input().split())
    rectangle.append([h,w])

l = len(rectangle)
count = 0

for rec in rectangle:
    count += 1
    for row in range(rec[0]):
        for col in range(rec[1]):
            sys.stdout.write('
        print('')
    if (count < l):
        print('')

Solution (Python):



import fileinput

for line in fileinput.input():
    (hight,width) = map(int,line.split(" "))
    
    if hight == 0 and width == 0:
        break
    
    for a in range(hight):
        for b in range(width):
            print("
        print("")
    print("")

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

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

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

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

Solution (Python):
H = []
W = []
i = 0
while True:
  h, w = map(int, input().split())
  H.append(h)
  W.append(w)
  if H[i] == 0 and W[i] == 0:
    break
  i += 1

i = 0
while True:
  if H[i] == 0 and W[i] == 0:
    break
  for j in range(H[i]):
    for k in range(W[i]):
      print("
    print()
  print()
  i += 1

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 1:
    h, w = map(int, raw_input().split())
    if h == 0 and w == 0:
        break
    else:
        for i 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
  for i in range(H):
    for j in range(W):
      sys.stdout.write("
    print ""
  print ""

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

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

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

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

 m = map(int,raw_input().split())

 if m[0] == 0 and m[1] == 0:
     break

 for i in xrange(m[0]):
    print "
 print ""

Solution (Python):
while True:
   a,b = map(int, raw_input().split())

   if a + b ==0:
      break
    
   else:
      for i in range(a):
         print b*'
      print ""

Solution (Python):

import sys
write = sys.stdout.write

while True:
    entry = map(int, raw_input().split())
    H = entry[0]
    W = entry[1]
    if H == 0 and W == 0:
        break
    for i in range(H):
    	for j in range(W):
    		write("
    	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):
a = map(int, raw_input().split())
while a != [0,0]:
	for i in xrange(a[0]):
		print '
	a = map(int, raw_input().split())
	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:
  H, W=map(int, raw_input().split())
  if H==0 and W==0:
    break
  for i 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
  for i in range(H):
    for j in range(W):
      sys.stdout.write('
    sys.stdout.write('\n')
  print ''

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

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

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

Solution (Python):
import sys
io = sys.stdin
 
while True:
    arr = io.readline().split()
    h, w = int(arr[0]), int(arr[1])
    if h==0 and w ==0 : break
 
    for x in xrange(h):
        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 1:
    H, W = map(int, raw_input().split())
    if H == 0 and W == 0:
        break
    else:
        for j in xrange(H):
            print "
        print ""

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys
while True:
	x,y = map(int,input().split())
	if (x==0) and (y==0):
		break
	for i in range(0,x):
		for j in range(0,y):
			sys.stdout.write("
		sys.stdout.write("\n")
	sys.stdout.write("\n")

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 xrange(h):
        print("
    print("")

Solution (Python):
h = []
w = []
while True:
    a,b = map(int, raw_input().split())
    h.append(a)
    w.append(b) 
    if a == 0 and b == 0:
        break

for h,w in zip(h,w):    
    if h == 0 and w == 0:
        break;
    else:
        r = "
        for x in xrange(w-1):
            r = r + "
        for x in xrange(h):
	    print r
    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, raw_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
    line = ''
    for i in range(W):
        line += '
    for i in range(H):
        print(line)
    print()

Solution (Python):


while True:
    line = map(str, raw_input().split())
    H = int(line[0])
    W = int(line[1])
    if H+W:
        for i in range(H):
            print "
        print ""
    else:
        break

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

Solution (Python):

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

Solution (Python):
import sys
while True:
    ls = map(int, raw_input().split())
    if ls[0]==0 and ls[1]==0:
        break
    for h in xrange(ls[0]):
        for w in xrange(ls[1]):
            
            sys.stdout.write('
        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):
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,raw_input().split())
    if h == 0 and w == 0:
        break
    for i in range(h):
        print '
    print ''

Solution (Python):
class PrintARectangle:
    def output(self, H, W):
        s = ""
        for w in range(W):
            s += "
        for h in range(H):
            print s
        print

if __name__ == "__main__":
    pr = PrintARectangle()
    while True:
        h, w = map(int, raw_input().split())
        if h == 0 and w == 0:
            break
        pr.output(h, w)

Solution (Python):
H=[]
W=[]
while 1:
    h,w=map(int,raw_input().split())
    if h==w==0:
        break
    H.append(h)
    W.append("
for i in xrange(len(W)):
    for j in xrange(H[i]):
        print(W[i])
    print

Solution (Python):
import sys
k = 1

while k == 1:
    r = raw_input()
    H, W = r.split()
    H = int(H)
    W = int(W)
    
    if H == 0 and W == 0:
        k = 0
    else:
        for i in range(H):
            for j in range(W):
                sys.stdout.write("
            print ("")
        print("")

Solution (Python):
all_N = []
while True:
	N = list(map(int, input().split(' ')))
	if N[0] == 0 and N[0] == 0:
		break
	all_N.append(N)

for i in range(len(all_N)):
	for j in range(all_N[i][0]):
		print('
	print('')

Solution (Python):
l=raw_input()
k=l.split()
H=int(k[0])
W=int(k[1])
while True:
        if H+W==0:
                break
        else:
                for i in range(H):
                        print "
                print ""
                l=raw_input()
                k=l.split()
                H=int(k[0])
                W=int(k[1])

Solution (Python):
import sys

while 1:
	h, w = map(int, raw_input().split())
	if h == 0 & w == 0:
		break
	else:
		for i in xrange(h):
			for j in xrange(w):
				sys.stdout.write("
			print ""
	print ""

Solution (Python):

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

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

Solution (Python):


def main():
	boxes = []
	while True:
		h, w = [int(i) for i in input().split(" ")]
		if h == 0 and w == 0:
			break
		boxes.append([h, w])
	for i in boxes:
		for j in range(i[0]):
			print("
		print()
	return
if __name__ == '__main__':
  main()

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

Solution (Python):
import math

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

while H > 0 or W > 0 :
    for i in xrange(H) :
        print "

    print 

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

Solution (Python):
while True:
	try:
		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()
	except:
		break

Solution (Python):
while True:
    n = input().split()
    a,b = int(n[0]),int(n[1])
    if a == 0 and b == 0:
        break
    elif a == 0 or b ==0:
        print()
    else:
        for i in range(a):
            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):
                out = ''
                for j in range(w):
                        out += '
                print(out)
        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 _ in range(H):
        print('
    print()

Solution (Python):
if __name__ == "__main__":
	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=list(map(int,input().split()))
    if(a[0]==0 and a[1]==0):
        break
    for x in range(a[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):
        a = ""
        for j in range(W):
            a += "
        print(a)
    print("")

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

    print("")

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

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

    for y in range(1, h + 1):
        for x in range(1, w + 1):
            print('
        print('')
    print('')

Solution (Python):
import sys
a = []
while True:
    x = map(int, raw_input().split())
    if x[0] == 0 and x[1] == 0:
        break
    a.append(x)
for i in range(len(a)):
    for j in range(a[i][0]):
        for k in range(a[i][1]):
            sys.stdout.write('
        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):
        for j in range(W):
            print("

        print("")

    print("")

Solution (Python):
first_flag = True

while True:
	H, W = map(int, input().split())
	if H == 0 and W == 0: break
	if not first_flag:
		print()
		first_flag = False
	print(("

Solution (Python):
while 1:
        i,j =map(int,raw_input().split())
        if i == j == 0:
                break
        elif 0<i<300 and 0<j<300:
                print (("

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

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

    for h in range(H):
        for w in range(W):
            print('

        print()

    print()

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

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

    for h in range(H):
        for w in range(W):
            print('

        print()
    print()

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

        print()
        
    print()

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

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

    for h in range(H):
        for w in range(W):
            print('
        print()
    
    print()

Solution (Python):
while True:

    H,W = [int(i) for i in input().split()]
 
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            print('
    
        print()
    
    print()

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

      print()
   
   print()

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

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

    for h in range(H):
        for w in range(W):
            print('
        
        print()

    print()

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

    for h in range(H):
        for w in range(W):
            print('

        print()

    print()

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

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

    for h in range(H):
        for w in range(W):
            print('
        
        print()

    print()

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

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

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

    for h in range(H):
        for w in range(W):
            print('

        print()

    print()

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

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

Solution (Python):
def draw(h,w):
	s = "
	for i in range(0,h):
		print s
	print

if __name__ == "__main__":
	while True:
		h,w = map(int, raw_input().split())
		if h==0 and w==0:
			break
		else:
			draw(h,w)

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

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

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

Solution (Python):
import sys

d = sys.stdin.readlines()
for i in d:
    h, w = [int(x) for x in i.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):
HW = input().split()
H = int(HW[0])
W = int(HW[1])

while H != 0 or W != 0:
    for i in range(H):
        for j in range(W):
            print("
        print("")
    HW = input().split()
    H = int(HW[0])
    W = int(HW[1])
    print("")

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