//4.数字直角三角形
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int num = 1;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n-i; j++)
{
if (num < 10)
{
cout << 0 << num;
} else {
cout << num;
}
num++;
}
cout << '\n';
}
return 0;
}