#include <iostream>
using namespace std;
int main()
{
int h;
cin >> h;
for( int i = h; i > 0; i-- )
for( int j = 1; j <= i; j++ )
cout << (h-i+1) % 10;
}
cout << '\n';
#include <iostream>
using namespace std;
int main()
{
int h;
cin >> h;
for( int i = h; i > 0; i-- )
{
for( int j = 1; j <= i; j++ )
{
cout << (h-i+1) % 10;
}
cout << '\n';
}
}