#include <bits/stdc++.h>
using namespace std;
int main()
{
    srand(time(NULL));
    freopen(".1.in","w", stdout);
    cout<<100<<endl;
    for(int c = 0 ; c < 100 ; c++ )
    {
        cout<<100<<" "<<(rand()%1000+1)<<endl;
        for(int i = 0 ; i < 100 ; i++ )
            cout<<rand()%1000+1<<" ";
        cout<<endl;
    }
}
