#38278: __py


11035093@mail.hpsh.tp.edu.tw (ಥ⁠‿⁠ಥ)


n = int(input())
for i in range(n):
    print("_"*(n-i-1)+"*"*(2*i+1)+"_"*(n-i-1))