#include <bits/stdc++.h>
#define pb push_back
#define NMAX 100005
#define ll long long
#define x first
#define y second

using namespace std;

ofstream fout("fisier.out");

int main() {
	int n,i,j;

	for(i=1;i<=256;++i) {
		for(j=1;j<=256;++j) {
			if(i%2==0 && j%2==0) cout<<"2 ";
			else cout<<"1 ";
		}
		fout<<'\n';
	}

	return 0;
}