#include <iostream>
using namespace std;
int main() {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int n, i, j;
cin >> n;
int a[n][n];
for (i=0; i<n/2; i++){
for (j=0; j<n/2; j++) a[i][j]=0;
for (; j<n; j++) a[i][j]=1;
}
for (; i<n; i++){
for (j=0; j<n/2; j++) a[i][j]=1;
for (; j<n; j++) a[i][j]=0;
}
for (i=0; i<n; i++){
for (j=0; j<n; j++) cout << a[i][j];
cout << '\n';
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgY2luLnRpZShudWxscHRyKTsKICBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTsKCiAgaW50IG4sIGksIGo7CiAgY2luID4+IG47CiAgaW50IGFbbl1bbl07CiAgZm9yIChpPTA7IGk8bi8yOyBpKyspewogICAgIGZvciAoaj0wOyBqPG4vMjsgaisrKSBhW2ldW2pdPTA7CiAgICAgZm9yICg7IGo8bjsgaisrKSBhW2ldW2pdPTE7CiAgfQogIGZvciAoOyBpPG47IGkrKyl7CiAgICAgZm9yIChqPTA7IGo8bi8yOyBqKyspIGFbaV1bal09MTsKICAgICBmb3IgKDsgajxuOyBqKyspIGFbaV1bal09MDsKICB9CiAgZm9yIChpPTA7IGk8bjsgaSsrKXsKICAgICBmb3IgKGo9MDsgajxuOyBqKyspIGNvdXQgPDwgYVtpXVtqXTsKICAgICBjb3V0IDw8ICdcbic7CiAgfQogIHJldHVybiAwOwp9