#include <iostream>
#include <vector>
#include <fstream>
#include <ctime>
#include <random>
#include <algorithm>
#include <cassert>
#include <queue>
#include <cstring>
#include <unordered_map>
#include <unordered_set>
using namespace std;

random_device rand_dev;
mt19937_64 generator(rand_dev());
main() {
    srand(time(0));
    for(int i = 71; i <= 80; i++) {
        int n = 50000+generator()%50000;
        vector<long long> p;
        ofstream in(string("ezici.") + (i<10?"0":"") + (i<100?"0":"") + to_string(i) + ".in");
        ofstream out(string("ezici.") + (i<10?"0":"") + (i<100?"0":"") + to_string(i) + ".out");
        in << -8 << endl;
        in << n << endl;
        unordered_set<long long> s;
        vector<long long> v;
        long long mx=-1e18-1,br=0;
        for(int i = 1; i <= n; i++) {
            if(i>1&&generator()%(1+generator()%100)==0) {
                v.push_back(v[generator()%v.size()]);
            }
            else {
                v.push_back((generator()%(long long)1e12));
            }
            s.insert(v.back());
            if(v.back()>mx) {
                br++;
            }
            mx=max(mx,v.back());
            in << v.back() << " ";
        }
        for(auto x : p) in << x << " ";
        in << endl;
    }
}