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