m = int(input())
n = int(input())

counter = 0
while counter < m:
  print("+ " * n)
  counter = counter + 1