#include <bits/stdc++.h>
using namespace std;
bool chk[10][10];
int main()
{
    srand(time(NULL));
    freopen(".1.in","w",stdout);
    cout<<100<<endl;
    for(int c = 0 ; c < 100 ; c++ )
    {
        memset(chk, 0, sizeof(chk));
        int x, y;
        x = rand()%8, y = rand()%8;
        chk[x][y] = true;
        for(int i = 0 ; i < 1 ; i++ )
        {
            int a, b;
            a = rand()%8, b = rand()%8;
            if( chk[a][b] )
            {
                i--;
                continue;
            }
            chk[a][b] = true;
        }
        for(int i = 0 ; i < 8 ; i++ )
        {
            for(int j = 0 ; j < 8 ; j++ )
                if( i == x and j == y ) cout<<"B";
                else if( chk[i][j] ) cout<<"T";
                else cout<<".";
            cout<<endl;
        }
    }
}
