#include <bits/stdc++.h>
using namespace std;
int p[2000006];
int main() { srand(time(0));
	freopen ("meow.in", "w", stdout);
	int T = 1;
	cout << T << endl;
	while (T --) {
		int n = rand() % 5 + 1, m = rand() % 100 + 1 << 1, k = (n << 1) - 1;
		n = 300, m = 2e6, k = (n << 1) - 1;
		for (int i=1; i<=m>>1; i++)
			p[i<<1] = p[(i<<1)-1] = rand() % k + 1;
		random_shuffle (p+1, p+m+1);
		printf ("%d %d %d\n", n, m, k);
		for (int i=1; i<=m; i++) printf ("%d ", p[i]); puts ("");
	}
}