#include
using namespace std;
int main()
{
int n;
cin>>n;
int row=1;
while(row<=n){
int col=1;
int val=1;
while(col<=row){
cout<<val<<" “;
val++;
col++;
}
for(int s=1;s<=n-row;s++){
cout<<” ";
}
val=row;
int cnt =1;
while(cnt<=row){
cout<<val<<" ";
cnt++;
val--;
}
row++;
cout<<endl;
}
return 0;
}