i=0
j=6
r=int(input())
c=int(input())
for row in range(r):
    for col in range(c):
        if row==col:
            print('*',end='')
        elif row==i and col==j:
            print('*', end='')
            i=i+1
            j=j-1
        else:
            print(end=' ')
    print('\r')
