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