#include "triangles.h"
#include <bits/stdc++.h>

using namespace std;

vector<vector<int>> solve(int n) {
    cout << 3 << endl;
    cout << 3 << endl;
    cout << "0 1 2" << endl;
    cout << 3 << endl;
    cout << "0 1 3" << endl;
    cout << 3 << endl;
    cout << "1 2 3" << endl;
}