num_rows = int(input())
num_cols = int(input())
for _i in range(num_rows):
print('*', end=' ')
for _i in range(num_cols - 1):
print()