https://www.acmicpc.net/problem/13015
n=int(input())
arr=[[0]*(4*n-3) for _ in range(2*n-1)]
for i in range(2*n-1):
for j in range(4*n-3):
arr[i][j]=' '
for i in range(n):
arr[0][i]='*'
arr[0][4*n-4-i]='*'
for i in range(1,n):
arr[i][i]='*'
arr[i][i+n-1]='*'
arr[i][4*n-4-i]='*'
arr[i][4*n-4-i-n+1]='*'
for i in range(2*n-2,n-1,-1):
for j in range(4*n-3):
arr[i][j]=arr[2*n-2-i][j]
for i in range(n):
for j in range(4*n-3-i):
print(arr[i][j],end='')
print()
for i in range(n,2*n-1):
for j in range(2*n-1+i):
print(arr[i][j],end='')
print()