#a
#for i in range (20):
#   print('*',end=' ') 

#b
# n = int(input('Nhap mot so: '))
# for i in range (n):
#     print('*',end=' ')

#c
#for i in range (9):
#     if i%2==1:
#         print('*',end=' ')
#     else:
#         print('x',end=' ')



#d
# n = int(input('Nhap mot so: '))
# for i in range (n):
#     if i%2==1:
#         print('*',end=' ')
#     else:
#         print('x',end=' ')

#e
# print()

#f
# for v in range (3):
#     for i in range (7):
#         print('*',end=' ')
#     print()

#g
n=int(input('Nhap so n: '))
m=int(input('Nhap so m: '))
for v in range (m):
    for i in range (n):
        print('*',end=' ')
    print()
