#include <bits/stdc++.h>
using namespace std;
int main()
{
int a[101][101],n;
cin>>n;
n++;
for(int i=1;i<n;i++){
for(int j=1;j<n;j++){
if(i<=j){
a[i][j]=j-i+1;
}
}
}
for(int i=1;i<n;i++){
for(int j=1;j<n;j++){
if(a[i][j]!=0){
cout<<setw(5)<<a[i][j];
}
else{
cout<<setw(5)<<" ";
}
}
cout<<endl;
}
return 0;
}
/**************************************************************
Problem: 1204
User: lcy
Language: C++
Result: Accepted
Time:22 ms
Memory:2072 kb
****************************************************************/