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