#include using namespace std; using namespace chrono; #if __has_include() #include using namespace atcoder; #endif int main() { int64_t n; cin >> n; vector ss(n); for (auto &&s : ss) { cin >> s; } int64_t cnt = 0; for (auto &&s : ss) { for (auto &&c : s) { if (c == '#') { cnt++; } } } if (n % 2 == 0) { cout << ((2 * cnt == n * n) ? "Yes" : "No") << endl; } else { cout << ((2 * cnt == n * (n - 1)) ? "Yes" : "No") << endl; } return 0; }