Problem:
Print a Rectangle Draw a rectangle which has a height of H cm and a width of W cm. Draw a 1-cm square by single '#'. Input The input consists of multiple datasets. Each dataset consists of two integers H and W separated by a single space. The input ends with two 0 (when both H and W are zero). Output For each dataset, print the rectangle made of H × W '#'. Print a blank line after each dataset. Constraints  1 ≤ H ≤ 300  1 ≤ W ≤ 300  Sample Input 3 4
5 6
2 2
0 0 Sample Output ####
####
####

######
######
######
######
######

##
##

Solution (Python):
while True:
    H,W = [int(x) for x in input().split()]
    if (H,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   
  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:
    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):
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):
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:
    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):
def main():

    while True:

        num = [int(x) for x in input().split(' ')]

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

        for i in range(num[0]):
            for j in range(num[1]):
                print('
            print('')

        print('')

if __name__ == "__main__":
    main()

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

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

Solution (Python):
H,W=map(int,input().split())
t = 0
while not ( H == 0 and W == 0 ):
	line = "".join(["
	for _ in range(H):
		print(line)

	print("")
	t+=1
	H,W=map(int,input().split())

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

Solution (Python):
if __name__ == '__main__':
	h,w = map(int, input().split())
	while h+w != 0:
		for i in range(h):
			s=""
			for j in range(w):
				s=s+"
			print(s)
		print()
		h,w = map(int, input().split())

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





class math:
    
    pi = 3.14159265358979323846264338

    
    def gcd(self, a, b):
        if b == 0:
            return a
        return self.gcd(b, a%b)

math = math()












while True:
    i = input()
    X, Y = [int(x) for x in i.split()]
    if X == 0:
        break
    for n in range(X):
        for m in range(Y):
            print("
        print("")
    print("")

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

Solution (Python):
HL=list()
WL=list()
while True:
    H,W=map(int,input().split())
    HL.append(H)
    WL.append(W)
    if H==0 and W==0:
        break
for i in range(len(HL)):
    for j in range(HL[i]):
        for k in range(WL[i]):
            print("
        print("")
        if j==HL[i]-1:
            print("")

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

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

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

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

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

Solution (Python):
while True:
    x = input()
    list = x.split()
    list_i = [int(s) for s in list]
    [H, W] = list_i
    
    if H == 0 and W == 0:
        break
    for t in range(H):
        for y in range(W - 1):
            print("
        print("
    print()

Solution (Python):
i = 0
a = []
while True:
    x = list(map(int, input().split()))
    a.append(x)
    if x[0] == 0 and x[1] == 0:
        break
    else:
        i = i+1

isize = len(a)-1
for i in range(isize):
    for j in range(a[i][0]):
        for k in range(a[i][1]):
            print('
        print('\n', end='')
    print('\n', end='')

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

Solution (Python):
sides = list(map(int, input().split()))
while sides != [0, 0]:
    line = '
    lines = line * sides[0]
    print(lines)
    sides = list(map(int, input().split()))

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

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

Solution (Python):



flag = True
rectangles = []
while flag:
    size = [int(i) for i in input().split()]
    H = size[0]
    W = size[1]
    if H == 0:
        flag = False
        break

    rectangle = []
    for h in range(H):
        row = []
        for w in range(W):
            row.append('
        rectangle.append(row)
    rectangles.append(rectangle)

for rectangle in rectangles:
    for row in rectangle:
        print(''.join(row))
    print('')

Solution (Python):
while 1:
    h,w=map(int,input().split())
    if h==w==0:
        break
    else:
        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("\n",end="")

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

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

while (H != 0 or W != 0):
    for i in range(0, H):
        print("
    H, W = map(int, input().split())
    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:
    i = input()
    H, W = map(int,i.split())
    
    if H == 0 and W == 0:
        break
    
    for h in range(H):
        str = ""
        for w in range(W):
            str = str + "
        print(str)
    
    print()

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

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

Solution (Python):
while True:

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

 if H == 0: break

 print(("

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

Solution (Python):
h = []
w = []
while True:
    h1,w1 = map(int,input().split())
    if (h1 == 0)*(w1 == 0) :
        break
    h.append(int(h1))
    w.append(int(w1))
    

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

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

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

    if a == 0 and b == 0:
        break
    
    for i in range(a):
        for i in range(b):
            print('
        print()
    print()

Solution (Python):


import sys

hw = []
h,w = map(int, input().split())
while h+w > 0:
  hw.append([h,w])
  h,w = map(int, input().split())

for i in range(len(hw)):
  for _ in range(hw[i][0]):
    for _ in range(hw[i][1]):
      print("
    print()
  print()

Solution (Python):
xdata = []
ydata = []

while(True):
    x, y = map(int, input().split())

    if x == 0 and y == 0:
        break

    else:
        xdata.append(x)
        ydata.append(y)

for i in range(len(xdata)):
    for k in range(xdata[i]):
        for l in range(ydata[i]):
            print("{}".format("
        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 _ in range(H):
        for _ in range(W):
            print('
        print('')
    
    print('')

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

Solution (Python):
while True:
    string = input()
    numbers = list(map(int, string.split(' ')))
    if numbers[0] == 0 and numbers[1] == 0:
        break
    for i in range(numbers[0]):
        for j in range(numbers[1]):
            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:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break

    for i in range(x):
        for z in range(y):
            print("
        print ()
    print ()

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

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

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

Solution (Python):
while True:
    H, W = [int(_) for _ in input().split()]
    if H or W:
        for _ in range(H):
            print('
        print()
    else:
        exit()

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

Solution (Python):
while True:
    a, b = map(int, input().split())
    if (a == 0 and b == 0):
        break
    print('\n'.join(['

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

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

Solution (Python):

i = 0
while True:
    line = input().rstrip().split()
    H = int(line[0])
    W = int(line[1])
    if H == 0 and W == 0:
        print("\n",end="")
        break
    if (i != 0):
        print("\n",end="")
    for i in range(H):
        for j in range(W):
            print("
        print("\n",end="")
    i += 1

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

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

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

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

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

  print("")

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

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


main()

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

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

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

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

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

Solution (Python):
a, b = map(int, input().split())
while a > 0 or b > 0:
	for i in range(a):
		for j in range(b - 1):
			print("
		print("
	print("")
	a, b = map(int, input().split())

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

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

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

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

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

Solution (Python):
import sys
i = 0
H = []
W = []
while(1):
    tmp = [int(x) for x in input().split()]
    H.append(tmp[0])
    W.append(tmp[1])
    if(H[i]==0 and W[i]==0):
        break
    i+=1
for u in range(i):
    for s in range(H[u]):
        for t in range(W[u]):
            sys.stdout.write('
        print("")
    print("")

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

Solution (Python):
while 1:
    a,b=map(int, input().split())
    if not a+b: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 j in range(h):
        for i in range(w):
            print("
        print()
    print()

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

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

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

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

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

Solution (Python):
while True:
    h, w = [int(i) for i in input().split()]
    if w == 0 and h == 0:
        break
    else:
        p = ['
        print(*p, sep='\n')
        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):
        print("
    print()

Solution (Python):
import sys

for line in sys.stdin:
    h, w = map(int, line.strip().split())
    if h == 0 and w == 0:
        break
    for _ 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
    for j in range(h):
        print('
    print()

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

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

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

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

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

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

Solution (Python):
dat = input().split()
h = int(dat[0])
w = int(dat[1])

while (True):
    if (h==0 and w==0):
        break
    
    i = 0
    while (i<h):
        print('
        i = i + 1
    try:
        dat = input().split()
        h = int(dat[0])
        w = int(dat[1])
        print()
    except EOFError:
        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):
num_input=list(map(int,input().split()))

h=num_input[0]
w=num_input[1]

while h!=0 or w!=0:
    for i in range(h):
        for j in range(w-1):
            print("
        print("

    print()
    num_input=list(map(int,input().split()))

    h=num_input[0]
    w=num_input[1]

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

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

Solution (Python):
h = 1
w = 1
while not(h == 0 and w == 0):
    z = input()
    h,w = [ int(a) for a in z.split()]
    pre = h
    while pre > 0:
        print ("
        pre = pre - 1
    if not(h == 0 and w == 0):
        print ()

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

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

Solution (Python):
hlist = []
wlist = []

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

    hlist.append(h)
    wlist.append(w)

for h, w in zip(hlist, wlist):
    for i in range(h):
        for j in range(w):
            print("
        print()
    print()

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

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

Solution (Python):
import sys

while (True):
    height, width = map(int, sys.stdin.readline().split())
    if (height!=0 and width!=0) :
        for i in range (height):
            print('
        print('')
    else : break

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

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

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

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

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

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

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

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

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

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

Solution (Python):
while True:
	H,W=map(int,input().split())
	if H==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 w==0 and h==0:
        break
    
    s = '
    for prt in range(h):
        print(s*w)
    
    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 & w == 0:
    break

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

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

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

while (h and w):
    result.append((h, w))
    h, w = map(int, input().split())

for item in result:
    for i in range(0, item[0]):
        for j in range(0, item[1]):
            print('
        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):
i = 1

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

Solution (Python):
BIG_NUM = 2000000000

while True:

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

    print()

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

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

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):
            if j<w-1:
                print("
            else :
                print("
    print("")

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

for i in range(len(L)-1):
    f(L[i][0],L[i][1])

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

Solution (Python):
while True:
    H, W = [int(i) for i in input().strip().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):
        sh = ''
        for j in range(w):
            sh += '
        print(sh)
    print()

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

Solution (Python):
input_values = []
while True:
    input_value = input().split()
    input_values.append(input_value)
    if input_value[0] == '0' and input_value[1] == '0':
        break

for input_value in input_values:
    height = int(input_value[0])
    width = int(input_value[1])
    if height > 0 and width > 0:
        for i in range(height):
            line = ''
            for j in range(width):
                line += "
            print(line)
        print()

Solution (Python):
import sys
input_lines = sys.stdin.readlines()[:-1]
for input_ in input_lines:
    h, w = [int(i) for i in input_.split()]
    for i in range(h):
        print('
    print()

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