my ($n, $m, $c) = glob<>; if (($n - 2) % 2 == 0 || ($m - 2) % 2 == 0) { print "YES" } else { print "NO" }