#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
int i,j;
cin>>n;
for(i = 1;i <= n;i++){
for(j = 1;j <= i - 1;j++){
cout<<" ";
}
for(j = 1;j <= n - i + 1;j++){
cout<<j;
}
cout<<endl;
}
}
/**************************************************************
Problem: 1491
User: admin
Language: C++
Result: Accepted
Time:13 ms
Memory:2072 kb
****************************************************************/