#include <bits/stdc++.h>
#define oo 987654321
#define INT long long int
using namespace std;
INT n, m, a[22][22], b[11] = {1,2,3,4,5,6,7,8,9,10};
int main()
{
    srand(time(NULL));
    freopen(".9.in", "w", stdout);
    cout<<9<<endl;
    for(int i = 0 ; i < 9 ; i++ )
        for(int j = i+1 ; j < 9 ; j++ )
            a[i][j] = a[j][i] = rand()%100+1;

    for(int i = 0 ; i < 9 ; i++ )
    {
        for(int j = 0 ; j < 9 ; j++ )
            cout<<a[i][j]<<" ";
        cout<<endl;
    }

}
