n = int(input())
# 2 * n-1
for i in range (0,n,1) :
for j in range (n-i,1,-1):
print(" ",end="")
for j in range (0,i+1,+1):
print("*", end="")
for j in range (1,i+1,+1):
print("*", end="")
print( )
for i in range (1,n,+1) :
for j in range (0,i,+1):
print(" ",end="")
for j in range (n-i,0,-1):
print("*", end="")
for j in range (n-i-1,0,-1):
print("*", end="")
print( )
C ์ธ์ด๋ก ํ๋๋ง๋ฅ ํ์ด๋ฒ๋ ค์ ๊ทธ๋ฐ๊ฐ ๊ธธ์ด๊ฐ ๊ธธ์ด์ง๊ณ ๋์กํ๋ค ใ ใ
๐ ์ข์ ์ฝ๋
n = int(input())
for i in range(1,n+1):
print(" "*(n-i) + "*"*(2*i-1))
for i in range(n-1, 0, -1):
print(" "*(n-i) + "*"*(2*i-1))