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