#include <iostream>
using namespace std;
int main()
{
int cnt;
cin >> cnt;
for (int r=1;r<=cnt;r++) {
for (int c=1;c<=r;c++) {
cout << c << " ";
}
cout << endl;
}
return 0;
}
if(n=1)
cout << 1;
if(n=2){
cout << 1;
cout << endl;
cout << 2;
}
if(n=3){
cout << 1;
cout << endl;
cout << 2;
cout << endl;
cout << 3;
}
if(n=4){
cout << 1;
cout << endl;
cout << 2;
cout << endl;
cout << 3;
cout << endl;
cout << 4;
}