# Mogic（咳咳，懂得都懂）

Description

Input

Output

Sample Input

3
4
Sample Output

      *
* *
* * * * * * *
* *     * *
*       *
* *     * *
* * * * * * *
* *
*

*
* *
*   *
* * * * * * * * * *
*   *       *   *
* *         * *
*           *
* *         * *
*   *       *   *
* * * * * * * * * *
*   *
* *
*



Hint

#include<iostream>
using namespace std;
int main(){
int n;
int a=0;
while(cin>>n){
//3*n-2+(n-1)*3
if(a){
cout<<endl;

}
a++;
for(int i=0;i<n*3-1-2;i++)
cout<<" ";
cout<<"*"<<endl;
for(int i=1;i<=n-2;i++){
for(int j=0;j<n*3-1-2-i;j++)
cout<<" ";
cout<<"*";
for(int j=0;j<i*2-1;j++)
cout<<" ";
cout<<"*"<<endl;

}
for(int i=0;i<n*3-3;i++){
cout<<"* ";

}
cout<<"*"<<endl;
for(int i=1;i<=n-2;i++){
for(int j=0;j<i;j++)
cout<<" ";
cout<<"*";
for(int j=0;j<(n-1-i)*2-1;j++){
cout<<" ";
}
cout<<"*";
for(int j=0;j<(n-1)*2+i*2-1;j++)
cout<<" ";
cout<<"*";
for(int j=0;j<(n-1-i)*2-1;j++){
cout<<" ";
}
cout<<"*"<<endl;

}
for(int i=0;i<n-1;i++)
cout<<" ";
cout<<"*";
for(int i=0;i<(n-1)*2+(n-1)*2-1;i++){
cout<<" ";
}
cout<<"*"<<endl;

for(int i=n-2;i>=1;i--){
for(int j=0;j<i;j++)
cout<<" ";
cout<<"*";
for(int j=0;j<(n-1-i)*2-1;j++){
cout<<" ";
}
cout<<"*";
for(int j=0;j<(n-1)*2+i*2-1;j++)
cout<<" ";
cout<<"*";
for(int j=0;j<(n-1-i)*2-1;j++){
cout<<" ";
}
cout<<"*"<<endl;

}
for(int i=0;i<n*3-3;i++){
cout<<"* ";

}
cout<<"*"<<endl;
for(int i=n-2;i>=1;i--){
for(int j=0;j<n*3-1-2-i;j++)
cout<<" ";
cout<<"*";
for(int j=0;j<i*2-1;j++)
cout<<" ";
cout<<"*"<<endl;
}
for(int i=0;i<n*3-1-2;i++)
cout<<" ";
cout<<"*"<<endl;

}
return 0;
}