<>=~$";$m=$'-1;print grep({grep$#$_++>0,//*$`..$',$m-$'..$m-$`}<>)?NO:YES