m_row = int(input()) 
n_row = int(input())  

for i in range(m_row):
    for j in range(n_row):
        print("+", end = " ")
    print()