#include<bits/stdc++.h>
#define LL long long
using namespace std;
inline LL read(){
	LL res=0,fl=1;
	char ch=getchar();
	while(!(ch>='0' && ch<='9')){
		if(ch=='-')fl=-1;
		ch=getchar();
	}
	while(ch>='0' && ch<='9')res=res*10+ch-'0',ch=getchar();
	return res*fl;
}
const LL N=1e5+5,M=1e9;
int main(){
//	freopen(".in","r",stdin);
//	freopen(".out","w",stdout);
	srand(int(time(0)));
	int n=100,m=100;
	int c=rand()%M,f=rand()%M;
	cout<<"1 0\n";
	cout<<n<<' '<<m<<' '<<c<<' '<<f<<'\n';
	for(int i=1;i<=n;i++){
		for(int j=1;j<=m;j++){
			if(rand()%10>2)cout<<0;
			else cout<<1;
		}
		cout<<'\n';
	}
	return 0;
}
