// NOTE: it is recommended to use this even if you don't understand the following code.

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

#define MAXN 1000

int       N, i, j;
int       G[MAXN][MAXN];
long long M;

int main() {
    // uncomment the two following lines if you want to read/write from files
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);

    assert(1 == scanf("%d", &N));

    for (j = 0; j < N; ++j) {
        for (i = 0; i < N; ++i)
            assert(1 == scanf("%d", &G[j][i]));
    }

    // INSERT YOUR CODE HERE


    for (j = 0; j < N; ++j) {
        for (i = 0; i < N - 1; ++i)
            printf("%d ", 42);
        printf("\n");
    }
    for (j = 0; j < N - 1; ++j) {
        for (i = 0; i < N; ++i)
            printf("%d ", 42);
        printf("\n");
    }

    return 0;
}
