#include
using namespace std;
#define INF INT_MAX
#define LINF LLONG_MAX
#define forin(data) for(auto &i : data)
#define debug(x) cerr << #x << " = " << x << endl;
using ll = long long;
using pi = pair;
using vi = vector;
using vii = vector;
using vl = vector;
void init(){
#ifdef LOCAL
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
freopen("log.txt", "w", stderr);
#else
cin.tie(0); cout.tie(0);
ios_base::sync_with_stdio(0);
#endif
}
int main(){
init();
int tc;
cin >> tc;
for(int i=1; i<=tc; i++){
int n;
cin >> n;
int arr[n][n];
int sum, row, col;
sum = row = col = 0;
for(int j=0; j ele;
for(int k=0; k> arr[j][k];
ele.insert(arr[j][k]);
}
if(ele.size() != n){
row++;
}
}
for(int j=0; j ele;
for(int k=0; k