N = int(input())
for i in range(1, N+1) :
    p = ""
    for j in range(1, i+1) :
        p += "*"
    print(p)
N = int(input())
for i in range(1, N+1) :
    p = ""
    for j in range(1, i+1) :
        p += "*"
    print(p)