<?php 
$sc = new Scanner();
$H = $sc->nextInt();
$W = $sc->nextInt();
for($i =0; $i<$H; $i++){
    $l[$i] = preg_split("//u", str_replace(".", 0, str_replace("#" , 1 ,$sc->next())) , -1, PREG_SPLIT_NO_EMPTY);
}
for($i = 0 ; $i < $H; $i++){
    for($j = 0 ; $j < $W; $j++){
        if($l[$i][$j]=="1"){
            if($j+1 < $W){
                $l[$i][$j+1]=($l[$i][$j+1]+1)%2;
            }elseif($i+1 < $H){
                $l[$i+1][$j]=($l[$i+1][$j]+1)%2;
            }
        }
    }
}
if($l[$W-1][$H-1]==1){
    echo "Yes".PHP_EOL;
} else {
    echo "No".PHP_EOL;
}
 
class Scanner {
    private $arr = [];
    private $count = 0;
    private $pointer = 0;
    public function next() {
        if($this->pointer >= $this->count) {
            $str = trim(fgets(STDIN));
            $this->arr = explode(' ', $str);
            $this->count = count($this->arr);
            $this->pointer = 0;
        }
        $result = $this->arr[$this->pointer];
        $this->pointer++;
        return $result;
    }
    public function hasNext() {
        return $this->pointer < $this->count;
    }
    public function nextInt() {
        return (int)$this->next();
    }
    public function nextDouble() {
        return (double)$this->next();
    }
}


    