<gh_stars>0
n = int(input())

for i in range(n):
    
    for j in range(n):
        if j <= i:
            print('*', end= '')

    print()

n = int(input())

for i in range(n):
    
    for j in range(n):
        if j <= i:
            print('*', end= '')

    print()