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