#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> N; ll s=0; for(i=1;i<=N;i++){ for(j=1;j<=N;j++){ char c; cin >> c; if(c=='#'){ a[i][j]=1; s++; } } } if(N%2==1 || s%2==0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }