#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
using namespace std;
typedef	long long ll;
std::mt19937_64 rng(std::chrono::system_clock::now().time_since_epoch().count());
ll rand(ll l,ll r)
{
    return uniform_int_distribution<ll>(l,r)(rng);
}
int main()
{
    int idx = 3;
    char x[] = "out00000000000000000000000000000550.txt";
    for (int ii = 0; ii < 5; ii++){
        if (x[idx] == '9')
            idx++;
        freopen(x, "w", stdout);
        x[idx]++;
        // edit from here
        cout<<1<<'\n';
        int n=rand(1,10);
        cout<<n<<'\n';
        for(int i=1;i<=n;i++)
        {
            cout<<rand(1,128)<<' ';
        }
        cout<<'\n';
        // stop edit
    }
}
