#include #include using namespace std; int main(){ int n; cin>> n; string str[n][n]; for(int i=0; i> str[i][j]; } } int cnt=0, num=-1; for(int j=0; j