#include <iostream>
using namespace std;
int main() {
int n, i, j;
cin >> n;
int a[n][n]={};
for (i=0; i<n/2; i++){
for (j=n/2; j<n; j++) a[i][j]=1;
}
for (; i<n; i++){
for (j=0; j<n/2; j++) a[i][j]=1;
}
for (i=0; i<n; i++){
for (j=0; j<n; j++) cout << a[i][j];
cout << '\n';
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbiwgaSwgajsKICAgIGNpbiA+PiBuOwogICAgaW50IGFbbl1bbl09e307CiAgCiAgICBmb3IgKGk9MDsgaTxuLzI7IGkrKyl7CiAgICAJZm9yIChqPW4vMjsgajxuOyBqKyspIGFbaV1bal09MTsKCX0KCWZvciAoOyBpPG47IGkrKyl7CiAgICAJZm9yIChqPTA7IGo8bi8yOyBqKyspIGFbaV1bal09MTsKCX0KCWZvciAoaT0wOyBpPG47IGkrKyl7CiAgICAJZm9yIChqPTA7IGo8bjsgaisrKSBjb3V0IDw8IGFbaV1bal07CiAgICAJY291dCA8PCAnXG4nOwoJfQoJcmV0dXJuIDA7Cn0=