#include <iostream>
using namespace std;
int main(){
int a;
cin>>a;
for(int j=1;j<=a;j++){
for(int i=1;i<=a-j;i++){
cout<<" ";
}
for(int k=1;k<=2j-1;k++){
cout<<"";
}
cout<<endl;
}
for(int i=1;i<=a;i++){
for(int j=1;j<=a-1;j++){
cout<<" ";
}
cout<<"*"<<endl;
}
return 0;
}