n=int(input())
r=2*n-1
c=2*r-1
mid=(c+1)//2
x=mid
y=mid
for i in range(1,r+1):
for j in range(1,c+1):
if((j>=x and j<=y) and j&1):
if(j<=mid):
print(chr(96+n-((j-x)//2)),end="")
else:
print(chr(96+n-((y-j)//2)),end="")
else:
print("-",end='')
if(i<n):
x-=2
y+=2
else:
x+=2
y-=2
print()
To embed this program on your website, copy the following code and paste it into your website's HTML: