#include<iostream>
using namespace std;
int n;
int main(){
cin>>n;
for(int i=1;i<=n;i++){
for(int j=n-i;j>=1;j--){
putchar(' ');
}
for(int j=(i-1)*2;j>=0;j--){
cout<<i;
}
if(i!=n)
cout<<endl;
}
}
/**************************************************************
Problem: 1008
User: long
Language: C++
Result: Accepted
Time:4 ms
Memory:2072 kb
****************************************************************/