# -*- coding: utf-8 -*-
from copy import deepcopy

h,w = map(int, input().split())
s = [list(input()) for _ in range(h)]

def check(dh,dw):
    s2 = deepcopy(s)
    cnt = 0
    for hi in range(h):
        for wi in range(w):
            if s2[hi][wi]=="#":
                cnt += 1
                if h>hi+dh>=0 and w>wi+dw>=0:
                    if s2[hi+dh][wi+dw]=="#":
                        s2[hi][wi] = "r"
                        s2[hi+dh][wi+dw] = "b"
                    else:
                        return False
                else:
                    return False
    return cnt>1

black = []
for hi in range(h):
    for wi in range(w):
        if s[hi][wi]=="#":
            black.append((hi,wi))

hi,wi = black[0]
for i in range(1,len(black)):
    hi2,wi2 = black[i]
    if check(hi2-hi, wi2-wi):
        print("YES")
        exit()
print("NO")