#include using namespace std; int main(){ int n,ans=-1; cin>>n; vector> s(n,vector(n)); for(int i=0;i>s[j][i]; vector can; for(int i=0;i