n = int(input())
for i in range(n):
for j in range(n):
if i==0 or i==n-1 or i==j or j+i==n-1 or j==0 or j==n-1 or i==(n-1)/2 or j==(n-1)/2:
print('*',end='')
else :
print(' ',end='')
print()
# print("*"*n)
# for i in range(n):
# print("*"," "*(n-4),"*")
# print("*"*n)