n,m,c = gets.split.map(&:to_i) if n == 1 || m == 1 if n * m == 2 puts "YES" else puts "NO" end else if n % 2 == 1 && m % 2 == 1 puts "NO" else puts "YES" end end