#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int matriz[N][N];
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
cin >> matriz[i][j];
}
}
bool diagonalesIguales = true;
for (int i = 0; i < N; i++) {
if (matriz[i][i] != matriz[i][N-i-1]) {
diagonalesIguales = false;
break;
}
}
if (diagonalesIguales) {
cout << "Iguales " << endl;
} else {
cout << "No iguales" << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgTjsKICAgIGNpbiA+PiBOOwoKICAgIGludCBtYXRyaXpbTl1bTl07CiAgICBmb3IgKGludCBpID0gMDsgaSA8IE47IGkrKykgewogICAgICAgIGZvciAoaW50IGogPSAwOyBqIDwgTjsgaisrKSB7CiAgICAgICAgICAgIGNpbiA+PiBtYXRyaXpbaV1bal07CiAgICAgICAgfQogICAgfQogICAgYm9vbCBkaWFnb25hbGVzSWd1YWxlcyA9IHRydWU7CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBOOyBpKyspIHsKICAgICAgICBpZiAobWF0cml6W2ldW2ldICE9IG1hdHJpeltpXVtOLWktMV0pIHsKICAgICAgICAgICAgZGlhZ29uYWxlc0lndWFsZXMgPSBmYWxzZTsKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgfQogICAgfQogICAgaWYgKGRpYWdvbmFsZXNJZ3VhbGVzKSB7CiAgICAgICAgY291dCA8PCAiSWd1YWxlcyAiIDw8IGVuZGw7CiAgICB9IGVsc2UgewogICAgICAgIGNvdXQgPDwgIk5vIGlndWFsZXMiIDw8IGVuZGw7CiAgICB9CgogICAgcmV0dXJuIDA7Cn0=