#include <bits/stdc++.h>
using namespace std;
int main() {
	freopen ("plant.in", "w", stdout);
	puts ("5 0");
	for (int t=1; t<=5; t++) {
		puts ("1000 1000 1 1");
		for (int i=1; i<=1000; i++, puts(""))
			for (int j=1; j<=1000; j++)
				putchar('0');
	}
}