program main implicit none integer::N,M,C,NM read *,N,M,C NM = N*M if(N.eq.1.or.M.eq.1) then if(N.eq.2.or.M.eq.2) then print '(a)',"YES" else print '(a)',"NO" end if else if(MOD(N*M,2).eq.0) then print '(a)',"YES" else print '(a)',"NO" end if end program main