#include using namespace std; using i64 = long long; const int N = 55; int n, m; char s[N][N], t[N][N]; bool check(int v1, int v2) { memcpy(t, s, sizeof s); for(int i = 1; i <= n; i ++) for(int j = 1; j <= m; j ++) if(t[i][j] == '#') { t[i][j] = '.'; if(i + v1 > n || j + v2 > m || t[i + v1][j + v2] == '.') return false; t[i + v1][j + v2] = '.'; } return true; } int main() { ios::sync_with_stdio(false); cin.tie(0); cin >> n >> m; for(int i = 1; i <= n; i ++) for(int j = 1; j <= m; j ++) cin >> s[i][j]; for(int i = 0; i <= n; i ++) for(int j = 0; j <= m; j ++) if(check(i, j)) { cout << "Yes\n"; return 0; } cout << "No\n"; }