#include using namespace std; int N; int A[500][500]; main() { cin>>N; for(int i=0;i