#include <bits/stdc++.h>
using namespace std;
int main(){
	int n,i=1;
	cin>>n;
	for(int j=1;j<=n;j++){
		for(int y=1;y<=n-j;y++){
			cout<<" ";
		}
		for(int y=1;y<=i;y++){
			cout<<j;
		}
		cout<<endl;
		i++;
		i++;
	}
	return 0;
}

/**************************************************************
	Problem: 1008
	User: zhouhongyi
	Language: C++
	Result: Accepted
	Time:4 ms
	Memory:2072 kb
****************************************************************/