include<bits/stdc++.h>
using namespace std;
int main(){
int n;
while(cin>>n) {
for(int i=1;i<=n;i++){//要输出n行,控制循环
for(int j=1;j<=n;j++){//每行输出
if(j==i||j==n-i+1){//何时输出空格,何时输出图案
//例如输入5;
//图案位置1 5
// 2 4
// 3
// 2 4
// 1 5
cout<<"*";
}
else
cout<<" ";//不满足输出‘ ’;
} cout<<endl; } } return 0;
}