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 in Python3 (judge verdict: Wrong Answer)

#
# my_value_list = []
#
# while True:
#     try:
#         my_value_list.append(input().split())
#     except EOFError:
#         break
#
# for i in range(0, len(my_value_list)):
#     if my_value_list[i][1] == "+":
#         print(int(my_value_list[i][0]) + int(my_value_list[i][2]))
#     elif my_value_list[i][1] == "-":
#         print(int(my_value_list[i][0]) - int(my_value_list[i][2]))
#     elif my_value_list[i][1] == "/":
#         print(int(my_value_list[i][0]) // int(my_value_list[i][2]))
#     elif my_value_list[i][1] == "*":
#         print(int(my_value_list[i][0]) * int(my_value_list[i][2]))
#     else:
#         break

# ITP1???4_D
# my_value = int(input())
# my_value_list_str = input().split()
#
# my_value_list = [int(i) for i in my_value_list_str]
# my_value_list.sort()
#
# print("{} {} {}".format(my_value_list[0], my_value_list[my_value-1], sum(my_value_list)))


my_value_list = []
while True:
    try:
        my_value = input().split()
        my_value = [int(x) for x in my_value]
        my_value_list.append(my_value)
    except EOFError:
         break

for i in range(0, len(my_value_list)):
    if my_value_list[i][0] == 0 and my_value_list[i][1] == 0:
        break
    else:
        for j in range(0, my_value_list[i][0]):
            for k in range(0, my_value_list[i][1]):
                print("*", end="")
            print("")