while True:
    try:
        n=int(input())
        for i in range(n):
            print("  "*(n-i)+(i+1)*"*")
        for j in range(n+1):
            print("  "*j+(n+1-j)*"*")
    except:
        break