#include <iostream>
using namespace std;
int main()
{
int num;
cin>>num;
for(int i=1;i<=num;i++)
{
for(int j=i;j>=1;j--)
cout<<j;
cout<<endl;
}
cin.get();
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpCnsKCWludCBudW07CgljaW4+Pm51bTsKCWZvcihpbnQgaT0xO2k8PW51bTtpKyspCgl7CgkJZm9yKGludCBqPWk7aj49MTtqLS0pCgkJCWNvdXQ8PGo7CgkJY291dDw8ZW5kbDsKCX0KCWNpbi5nZXQoKTsKfQ==