read n m NO echo ${_[1>m*n%2&m>1&n>1|n*m<3]-YES}