#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int height;
cin >> height;
for(int y=2*height;y>0;--y,cout<<endl)
for(int x=height-abs(y-height);x>0;--x)
cout<<"T";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICBpbnQgaGVpZ2h0OwogICAgY2luID4+IGhlaWdodDsKICAgIGZvcihpbnQgeT0yKmhlaWdodDt5PjA7LS15LGNvdXQ8PGVuZGwpCiAgICAgICAgZm9yKGludCB4PWhlaWdodC1hYnMoeS1oZWlnaHQpO3g+MDstLXgpCiAgICAgICAgICAgIGNvdXQ8PCJUIjsKICAgIHJldHVybiAwOwp9Cg==