// C++ is the same as C so whatevs #include <cstdlib> #include <iostream> #define z std #define a 5 #define f cout #define g endl #define n cin #define o sizeof #define p (int*)&c #define r int #define s const int* #define t const void* #define u size_t #define v return #define w main #define x qsort #define y "Later:" void b ( r c [ a ] [ a ] ) { for ( r d = 0 ; d < a ; d ++ ) { for ( r e = 0 ; e < a ; e ++ ) { z :: f << c [ d ] [ e ] << ' ' ; } z :: f << z :: g ; } } r h ( t i,t j ) { s k = ( s ) i ; s l = ( s ) j ; for ( u m = 0 ; m < a ; m ++ ) { if ( k [ m ] < l [ m ] ) { v - 1 ; } if ( k [ m ] > l [ m ] ) { v + 1 ; } } v 0 ; } r w ( ) { r c [ a ] [ a ] ; r d = 0 ; while ( z :: n >> c [ d / a ] [ d % a ] && ++ d < a * a ) ; b ( c ) ; x ( p,a,o ( r [ a ] ) ,h ) ; z :: f << y << z :: g ; b ( c ) ; v 0 ; }

Ly8gQysrIGlzIHRoZSBzYW1lIGFzIEMgc28gd2hhdGV2cwojaW5jbHVkZSA8Y3N0ZGxpYj4KI2luY2x1ZGUgPGlvc3RyZWFtPgojZGVmaW5lIHogc3RkCiNkZWZpbmUgYSA1CiNkZWZpbmUgZiBjb3V0CiNkZWZpbmUgZyBlbmRsCiNkZWZpbmUgbiBjaW4KI2RlZmluZSBvIHNpemVvZgojZGVmaW5lIHAgKGludCopJmMKI2RlZmluZSByIGludAojZGVmaW5lIHMgY29uc3QgaW50KgojZGVmaW5lIHQgY29uc3Qgdm9pZCoKI2RlZmluZSB1IHNpemVfdAojZGVmaW5lIHYgcmV0dXJuCiNkZWZpbmUgdyBtYWluCiNkZWZpbmUgeCBxc29ydAojZGVmaW5lIHkgIkxhdGVyOiIKdm9pZCBiKHIgY1thXVthXSl7Zm9yKHIgZD0wO2Q8YTtkKyspe2ZvcihyIGU9MDtlPGE7ZSsrKXt6OjpmPDxjW2RdW2VdPDwnICc7fXo6OmY8PHo6Omc7fX0KciBoKHQgaSx0IGope3Mgaz0ocylpO3MgbD0ocylqO2Zvcih1IG09MDttPGE7bSsrKXtpZihrW21dPGxbbV0pe3YgLTE7fWlmKGtbbV0+bFttXSl7diArMTt9fXYgMDt9CnIgdygpe3IgY1thXVthXTtyIGQgPSAwO3doaWxlKHo6Om4+PmNbZC9hXVtkJWFdJiYrK2Q8YSphKTtiKGMpO3gocCxhLG8oclthXSksaCk7ejo6Zjw8eTw8ejo6ZztiKGMpO3YgMDt9Cg==