int n;
scanf("%d",&n);
int A[n][n];