class Yukicoder def initialize n, m, c = gets.chomp.split.map(&:to_i) if [n,m].min == 1 puts "NO" elsif (n*m).even? puts "YES" else puts "NO" end end end Yukicoder.new