#include<bits/stdc++.h>
using namespace std;
int main()
{
  int i,n,j,z;
  cin>>n;
  int s=n-1,x=n-2,a=0,b=2*n-1;
  for(i=1;i<=n;i++){
  	for(j=1;j<=s;j++) cout<<" ";
  	s--;
  	if(i==1) for(z=1;z<=n;z++) cout<<"*";
  	else{
  	cout<<"*";
  	for(z=1;z<=x;z++) cout<<" ";
  	cout<<"*";} 
  	x+=2;
  	cout<<endl;}
  for(i=1;i<n;i++){
  	for(j=0;j<=a;j++) cout<<" ";
  		a++;
  	if(i==n-1) for(z=0;z<n;z++)  cout<<"*";
  		else{
  	cout<<"*";
  	for(z=1;z<=b;z++) cout<<" ";
  	  cout<<"*";
		b-=2;
  	  cout<<endl;}}
return 0;
}
/**************************************************************
	Problem: 1011
	User: wtq001
	Language: C++
	Result: Accepted
	Time:4 ms
	Memory:2072 kb
****************************************************************/