#ifdef NACHIA #define _GLIBCXX_DEBUG #else #define NDEBUG #endif #include #include #include #include using i64 = long long; using u64 = unsigned long long; #define rep(i,n) for(i64 i=0; i void chmin(A& l, const A& r){ if(r < l) l = r; } template void chmax(A& l, const A& r){ if(l < r) l = r; } using namespace std; void testcase(){ i64 N; cin >> N; vector A(N); rep(i,N) cin >> A[i]; i64 cnt = 0; for(auto& a : A) for(auto c : a) if(c == '#') cnt += 1; if(cnt % 2 == 1 && N % 2 == 0){ cout << "No\n"; } else { cout << "Yes\n"; } } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); testcase(); return 0; }