#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i,n) for(int i=0;i=0;i--) #define DREP(i,n) for(int i=n;i>0;i--) #define Rep(i,m,n) for(int i=m;i vi; typedef vector > vvi; typedef pair pdd; typedef pair pii; const double pi=acos(-1.0); double rad(double t){return t*pi/180.0;} double deg(double d){return d*180.0/pi;} int GCD(int x,int y){if(x> N; REP(i,N)REP(j,N){ cin >> A[i][j]; } int ans=-1; REP(j,N){ bool flag=true; REP(i,N){ if(A[i][j]!="nyanpass" && A[i][j]!="-") flag=false; } if(flag){ if(ans==0)ans=j; else ans=-1; } } if(ans==0)ans = -1; cout << ans << endl; return 0; }