#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define ll long long
void solve(){
int n; scanf("%d", &n);
int a[n][n];
for(int i=0; i <n; i++){
for(int j=0; j <n; j++){
scanf("%d", &a[i][j]);
}
}
int b[n-1][n-1];
for(int i=0; i <n; i++){
for(int j=0; j <n; j++){
if(i < j && i + j < n - 1) b[i][j-1] = a[i][j];
if((i + j > n-1 ) && (i < j)) b[i-1][j-1] = a[i][j];
if((i +j > n-1) && (i > j)) b[i-1][j] = a[i][j];
if((i+j <n-1) && (i > j)) b[i][j] = a[i][j];
}
}
for(int i=0; i <n-1; i++){
for(int j=0; j <n-1; j++){
printf("%d ", b[i][j]);
}
printf("\n");
}
}
int main(){
int typetest = 0;
if(typetest){
int t; scanf("%d", &t);
while(t--){
solve();
}
}else solve();
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2RlZmluZSBsbCBsb25nIGxvbmcKCgp2b2lkIHNvbHZlKCl7CiAgICBpbnQgbjsgc2NhbmYoIiVkIiwgJm4pOwogICAgaW50IGFbbl1bbl07CiAgICBmb3IoaW50IGk9MDsgaSA8bjsgaSsrKXsKICAgICAgICBmb3IoaW50IGo9MDsgaiA8bjsgaisrKXsKICAgICAgICAgICAgc2NhbmYoIiVkIiwgJmFbaV1bal0pOwogICAgICAgIH0KICAgIH0KICAgIGludCBiW24tMV1bbi0xXTsKICAgIGZvcihpbnQgaT0wOyBpIDxuOyBpKyspewogICAgICAgIGZvcihpbnQgaj0wOyBqIDxuOyBqKyspewogICAgICAgICAgICBpZihpIDwgaiAmJiBpICsgaiAgPCBuIC0gMSkgYltpXVtqLTFdID0gYVtpXVtqXTsKICAgICAgICAgICAgaWYoKGkgKyBqID4gbi0xICkgJiYgKGkgPCBqKSkgYltpLTFdW2otMV0gPSBhW2ldW2pdOwogICAgICAgICAgICBpZigoaSAraiA+IG4tMSkgJiYgKGkgPiBqKSkgYltpLTFdW2pdID0gYVtpXVtqXTsKICAgICAgICAgICAgaWYoKGkraiA8bi0xKSAgJiYgKGkgPiBqKSkgYltpXVtqXSAgPSBhW2ldW2pdOwogICAgICAgIH0KICAgIH0KICAgIGZvcihpbnQgaT0wOyBpIDxuLTE7IGkrKyl7CiAgICAgICAgZm9yKGludCBqPTA7IGogPG4tMTsgaisrKXsKICAgICAgICAgICAgcHJpbnRmKCIlZCAiLCBiW2ldW2pdKTsKICAgICAgICB9CiAgICAgICAgcHJpbnRmKCJcbiIpOwogICAgfQp9CgppbnQgbWFpbigpewogICAgaW50IHR5cGV0ZXN0ID0gMDsKICAgIGlmKHR5cGV0ZXN0KXsKICAgICAgICBpbnQgdDsgc2NhbmYoIiVkIiwgJnQpOwogICAgICAgIHdoaWxlKHQtLSl7CiAgICAgICAgICAgIHNvbHZlKCk7CiAgICAgICAgfQogICAgfWVsc2Ugc29sdmUoKTsKfQ==