#include<stdio.h>
#include<math.h>
#define N 15
#define M (N-1)/2
int main()
{
int i,j;
for(i=-M;i<=M;i++)
{
for(j=-M;j<=M;j++)
{
if(abs(i)==M || abs(j)==M)
printf("H");
else if(abs(i)==M-1 || abs(j)==M-1)
printf("T");
else
printf("%d",M-1-(abs(i)>abs(j)?abs(i):abs(j)));
}
printf("\n");
}
return 0;
}