#include using namespace std; int main(){ int N; cin >> N; string nyan[N][N]; for(int i=0; i> nyan[i][j]; } } int cnt = 0, judge = 0; for(int i=0; i