x = int(input()) y = int(input()) while x > 0: col = y while col > 0: print('*', end=' ') col -= 1 print() x -= 1